summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/DownloadWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-13 21:22:11 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-13 21:22:11 +0200
commit7d90455fad92b5220fbd946485a878426c15a800 (patch)
tree5cefe4c33a4b184086ad6be1b97ba71168a1562f /Userland/Applications/Browser/DownloadWidget.cpp
parent30abfc2b213c3d4782e0d2d704f6b4c8b73c04cf (diff)
downloadserenity-7d90455fad92b5220fbd946485a878426c15a800.zip
Browser: Fix build breakage from 29cce65
Diffstat (limited to 'Userland/Applications/Browser/DownloadWidget.cpp')
-rw-r--r--Userland/Applications/Browser/DownloadWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/DownloadWidget.cpp b/Userland/Applications/Browser/DownloadWidget.cpp
index f46b113c76..594cbbb37f 100644
--- a/Userland/Applications/Browser/DownloadWidget.cpp
+++ b/Userland/Applications/Browser/DownloadWidget.cpp
@@ -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>();