mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
||||||
#include <LibGUI/ListView.h>
|
#include <LibGUI/ListView.h>
|
||||||
#include <LibGUI/Menu.h>
|
#include <LibGUI/Menu.h>
|
||||||
|
|
||||||
|
static bool default_enable_content_filtering = true;
|
||||||
|
|
||||||
static String filter_list_file_path()
|
static String filter_list_file_path()
|
||||||
{
|
{
|
||||||
return String::formatted("{}/BrowserContentFilters.txt", Core::StandardPaths::config_directory());
|
return String::formatted("{}/BrowserContentFilters.txt", Core::StandardPaths::config_directory());
|
||||||
|
@ -148,4 +150,5 @@ void ContentFilterSettingsWidget::apply_settings()
|
||||||
void ContentFilterSettingsWidget::reset_default_values()
|
void ContentFilterSettingsWidget::reset_default_values()
|
||||||
{
|
{
|
||||||
m_domain_list_model->reset_default_values();
|
m_domain_list_model->reset_default_values();
|
||||||
|
m_enable_content_filtering_checkbox->set_checked(default_enable_content_filtering);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue