1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:57:46 +00:00

MouseSettings: Update the cursor theme preview when restoring defaults

Previously, if you opened MouseSettings, set the cursor theme to Dark,
and then click "Defaults", the cursors list would not update.
ComboBox::set_text() does not call the on_change callback, so we have
to run the steps manually.

I've also made `m_theme_name` into a local variable, since it can be.
This commit is contained in:
Sam Atkins 2022-04-29 21:06:27 +01:00 committed by Andreas Kling
parent 6ba03dec35
commit e74e320750
2 changed files with 10 additions and 9 deletions

View file

@ -75,5 +75,5 @@ private:
RefPtr<GUI::TableView> m_cursors_tableview;
RefPtr<GUI::ComboBox> m_theme_name_box;
String m_theme_name;
RefPtr<MouseCursorModel> m_mouse_cursor_model;
};