mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Browser: Fix build breakage from 29cce65
This commit is contained in:
parent
30abfc2b21
commit
7d90455fad
1 changed files with 2 additions and 2 deletions
|
@ -90,9 +90,9 @@ DownloadWidget::DownloadWidget(const URL& url)
|
|||
m_close_on_finish_checkbox = add<GUI::CheckBox>("Close when finished");
|
||||
m_close_on_finish_checkbox->set_checked(close_on_finish);
|
||||
|
||||
m_close_on_finish_checkbox->on_checked = [&]() {
|
||||
m_close_on_finish_checkbox->on_checked = [&](bool checked) {
|
||||
auto browser_config = Core::ConfigFile::get_for_app("Browser");
|
||||
browser_config->write_bool_entry("Preferences", "CloseDownloadWidgetOnFinish", m_close_on_finish_checkbox->is_checked());
|
||||
browser_config->write_bool_entry("Preferences", "CloseDownloadWidgetOnFinish", checked);
|
||||
};
|
||||
|
||||
auto& button_container = add<GUI::Widget>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue