mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibGUI+FontEditor: Allow ComboBox on_change callback to be toggled
When calling set_selected_index() on ComboBox, allow its on_change callback to be disabled. Fixes FontEditor window state erroneously switching to modified when initializing between different slopes and weights.
This commit is contained in:
parent
ca062d83db
commit
298a6b9937
3 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ public:
|
|||
void set_model(NonnullRefPtr<Model>);
|
||||
|
||||
size_t selected_index() const;
|
||||
void set_selected_index(size_t index);
|
||||
void set_selected_index(size_t index, AllowCallback = AllowCallback::Yes);
|
||||
|
||||
bool only_allow_values_from_model() const { return m_only_allow_values_from_model; }
|
||||
void set_only_allow_values_from_model(bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue