diff options
author | Julian Offenhäuser <offenhaeuser@protonmail.com> | 2023-02-09 15:06:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-10 15:41:56 +0100 |
commit | ab5b61c3fefa57c7f689a22f988c0929bbb5a515 (patch) | |
tree | 1a892ddef0c300d434b2aa611279c09fb219c94b | |
parent | 2649bc737f2db4d7d8a5cd0c07d53e57d14c6756 (diff) | |
download | serenity-ab5b61c3fefa57c7f689a22f988c0929bbb5a515.zip |
DisplaySettings: Capitalize fallback display mode when loading settings
This setting was capitalized a while ago, except for this place where
we fall back to "[C]center". This caused a crash in MonitorWidget.
-rw-r--r-- | Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp index ce37fcbbf2..d786da5fff 100644 --- a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp +++ b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp @@ -130,10 +130,10 @@ void BackgroundSettingsWidget::load_current_settings() m_monitor_widget->set_wallpaper(selected_wallpaper); } - auto mode = ws_config->read_entry("Background", "Mode", "center"); + auto mode = ws_config->read_entry("Background", "Mode", "Center"); if (!m_modes.contains_slow(mode)) { - warnln("Invalid background mode '{}' in WindowServer config, falling back to 'center'", mode); - mode = "center"; + warnln("Invalid background mode '{}' in WindowServer config, falling back to 'Center'", mode); + mode = "Center"; } m_monitor_widget->set_wallpaper_mode(mode); m_mode_combo->set_selected_index(m_modes.find_first_index(mode).value_or(0), GUI::AllowCallback::No); |