From e56ffd11ce76fed4256b2de72940bf100bd17ee9 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sun, 21 Nov 2021 21:10:46 +0100 Subject: [PATCH] DisplaySettings: Always save the background color to the config Previously, you could notice that the background color isn't being updated when you picked a small bitmap image with the 'center' mode. --- .../DisplaySettings/BackgroundSettingsWidget.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp index 032808f5f9..2c644772ba 100644 --- a/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp +++ b/Userland/Applications/DisplaySettings/BackgroundSettingsWidget.cpp @@ -141,12 +141,8 @@ void BackgroundSettingsWidget::apply_settings() { Config::write_string("WindowManager", "Background", "Wallpaper", m_monitor_widget->wallpaper()); - if (!m_monitor_widget->wallpaper().is_empty()) { - GUI::Desktop::the().set_wallpaper(m_monitor_widget->wallpaper()); - } else { - GUI::Desktop::the().set_wallpaper(""); - GUI::Desktop::the().set_background_color(m_color_input->text()); - } + GUI::Desktop::the().set_wallpaper(m_monitor_widget->wallpaper()); + GUI::Desktop::the().set_background_color(m_color_input->text()); GUI::Desktop::the().set_wallpaper_mode(m_monitor_widget->wallpaper_mode()); }