mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +00:00
Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writing
This commit is contained in:
parent
54bbe52b51
commit
938051feb8
Notes:
sideshowbarker
2024-07-18 05:25:22 +09:00
Author: https://github.com/networkException
Commit: 938051feb8
Pull-request: https://github.com/SerenityOS/serenity/pull/9501
Reviewed-by: https://github.com/awesomekling
25 changed files with 29 additions and 29 deletions
|
@ -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");
|
||||
auto browser_config = Core::ConfigFile::get_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