diff options
author | networkException <git@nwex.de> | 2021-08-21 16:33:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-22 01:32:25 +0200 |
commit | acde7d12b0d2870feba3ebaaaf2ef99ac6fb41b3 (patch) | |
tree | 9ea1d89f621446ea24b9ee34ca93c73acef225a0 /Userland/Applications/Browser/DownloadWidget.cpp | |
parent | 938051feb8d9340657251082f3fd4abffd57b813 (diff) | |
download | serenity-acde7d12b0d2870feba3ebaaaf2ef99ac6fb41b3.zip |
Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to open
This patch brings the ConfigFile helpers for opening lib, app and system
configs more inline with the regular ConfigFile::open functions.
Diffstat (limited to 'Userland/Applications/Browser/DownloadWidget.cpp')
-rw-r--r-- | Userland/Applications/Browser/DownloadWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/DownloadWidget.cpp b/Userland/Applications/Browser/DownloadWidget.cpp index ee9aa889b6..d18385be44 100644 --- a/Userland/Applications/Browser/DownloadWidget.cpp +++ b/Userland/Applications/Browser/DownloadWidget.cpp @@ -36,7 +36,7 @@ DownloadWidget::DownloadWidget(const URL& url) m_destination_path = builder.to_string(); } - auto browser_config = Core::ConfigFile::get_for_app("Browser"); + auto browser_config = Core::ConfigFile::open_for_app("Browser"); auto close_on_finish = browser_config->read_bool_entry("Preferences", "CloseDownloadWidgetOnFinish", false); m_elapsed_timer.start(); @@ -90,7 +90,7 @@ DownloadWidget::DownloadWidget(const URL& url) m_close_on_finish_checkbox->set_checked(close_on_finish); m_close_on_finish_checkbox->on_checked = [&](bool checked) { - auto browser_config = Core::ConfigFile::get_for_app("Browser", Core::ConfigFile::AllowWriting::Yes); + auto browser_config = Core::ConfigFile::open_for_app("Browser", Core::ConfigFile::AllowWriting::Yes); browser_config->write_bool_entry("Preferences", "CloseDownloadWidgetOnFinish", checked); }; |