BrowserSettings: Add missing code to update filtering checkbox
reset_default_values() now sets default filtering checkbox state using default_enable_content_filtering.
This commit is contained in:
parent
e268659d32
commit
00a0b1bd14
Notes:
sideshowbarker
2024-07-17 11:15:21 +09:00
Author: https://github.com/IT6uru 🔰 Commit: https://github.com/SerenityOS/serenity/commit/00a0b1bd14 Pull-request: https://github.com/SerenityOS/serenity/pull/13914 Issue: https://github.com/SerenityOS/serenity/issues/13908 Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
|||
#include <LibGUI/ListView.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
|
||||
static bool default_enable_content_filtering = true;
|
||||
|
||||
static String filter_list_file_path()
|
||||
{
|
||||
return String::formatted("{}/BrowserContentFilters.txt", Core::StandardPaths::config_directory());
|
||||
|
@ -148,4 +150,5 @@ void ContentFilterSettingsWidget::apply_settings()
|
|||
void ContentFilterSettingsWidget::reset_default_values()
|
||||
{
|
||||
m_domain_list_model->reset_default_values();
|
||||
m_enable_content_filtering_checkbox->set_checked(default_enable_content_filtering);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue