mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02: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:
committed by
Andreas Kling
parent
938051feb8
commit
acde7d12b0
Notes:
sideshowbarker
2024-07-18 05:25:19 +09:00
Author: https://github.com/networkException Commit: https://github.com/SerenityOS/serenity/commit/acde7d12b0d Pull-request: https://github.com/SerenityOS/serenity/pull/9501 Reviewed-by: https://github.com/awesomekling
@@ -86,7 +86,7 @@ void BackgroundSettingsWidget::create_frame()
|
||||
void BackgroundSettingsWidget::load_current_settings()
|
||||
{
|
||||
auto ws_config = Core::ConfigFile::open("/etc/WindowServer.ini");
|
||||
auto wm_config = Core::ConfigFile::get_for_app("WindowManager");
|
||||
auto wm_config = Core::ConfigFile::open_for_app("WindowManager");
|
||||
|
||||
auto selected_wallpaper = wm_config->read_entry("Background", "Wallpaper", "");
|
||||
if (!selected_wallpaper.is_empty()) {
|
||||
@@ -118,7 +118,7 @@ void BackgroundSettingsWidget::load_current_settings()
|
||||
|
||||
void BackgroundSettingsWidget::apply_settings()
|
||||
{
|
||||
auto wm_config = Core::ConfigFile::get_for_app("WindowManager", Core::ConfigFile::AllowWriting::Yes);
|
||||
auto wm_config = Core::ConfigFile::open_for_app("WindowManager", Core::ConfigFile::AllowWriting::Yes);
|
||||
wm_config->write_entry("Background", "Wallpaper", m_monitor_widget->wallpaper());
|
||||
|
||||
if (!m_monitor_widget->wallpaper().is_empty()) {
|
||||
|
||||
Reference in New Issue
Block a user