mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
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.
This commit is contained in:
committed by
Brian Gianforcaro
parent
65f3a259d2
commit
e56ffd11ce
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user