1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

DisplaySettings: Set window modified state

This commit is contained in:
Sam Atkins 2022-05-11 17:08:32 +01:00 committed by Andreas Kling
parent af01c6be0c
commit d7190be3a3
5 changed files with 23 additions and 7 deletions

View file

@ -44,8 +44,9 @@ ThemesSettingsWidget::ThemesSettingsWidget(bool& background_settings_changed)
m_themes_combo->on_change = [this](auto&, const GUI::ModelIndex& index) {
m_selected_theme = &m_themes.at(index.row());
m_theme_preview->set_theme(m_selected_theme->path);
set_modified(true);
};
m_themes_combo->set_selected_index(current_theme_index);
m_themes_combo->set_selected_index(current_theme_index, GUI::AllowCallback::No);
}
void ThemesSettingsWidget::apply_settings()