mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
BrowserSettings: Port content filters to String
This commit is contained in:
parent
5089766af6
commit
d1ad513cb1
3 changed files with 45 additions and 36 deletions
|
@ -55,7 +55,7 @@ ErrorOr<NonnullRefPtr<AutoplaySettingsWidget>> AutoplaySettingsWidget::create()
|
|||
String text;
|
||||
|
||||
if (GUI::InputBox::show(widget->window(), text, "Website:"sv, "Add website to autoplay allowlist"sv, GUI::InputType::NonemptyText) == GUI::Dialog::ExecResult::OK) {
|
||||
widget->m_allowlist_model->add_domain(text.to_deprecated_string());
|
||||
widget->m_allowlist_model->add_domain(move(text));
|
||||
widget->set_modified(true);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue