1
Fork 0
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:
Timothy Flynn 2023-04-21 08:03:50 -04:00 committed by Andreas Kling
parent 5089766af6
commit d1ad513cb1
3 changed files with 45 additions and 36 deletions

View file

@ -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);
}
};