mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +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
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue