mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
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.
This commit is contained in:
parent
938051feb8
commit
acde7d12b0
37 changed files with 51 additions and 51 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue