1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

MouseSettings: Set window modified state

This commit is contained in:
Sam Atkins 2022-05-11 17:42:45 +01:00 committed by Andreas Kling
parent 7d6f5f19fd
commit 17b41f0d61
3 changed files with 36 additions and 9 deletions

View file

@ -121,10 +121,11 @@ ThemeWidget::ThemeWidget()
m_theme_name_box = find_descendant_of_type_named<GUI::ComboBox>("theme_name_box");
m_theme_name_box->on_change = [this](String const& value, GUI::ModelIndex const&) mutable {
m_mouse_cursor_model->change_theme(value);
set_modified(true);
};
m_theme_name_box->set_model(ThemeModel::create());
m_theme_name_box->model()->invalidate();
m_theme_name_box->set_text(theme_name);
m_theme_name_box->set_text(theme_name, GUI::AllowCallback::No);
}
void ThemeWidget::apply_settings()