1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:37:35 +00:00

LibGUI: Allow bypassing hook when setting SpinBox range

Pass false to set_range to avoid on_change side-effects.
This commit is contained in:
thankyouverycool 2021-04-22 13:29:22 -04:00 committed by Andreas Kling
parent f90c224fc5
commit 99e7ad4b76
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ public:
int max() const { return m_max; }
void set_min(int min) { set_range(min, max()); }
void set_max(int max) { set_range(min(), max); }
void set_range(int min, int max);
void set_range(int min, int max, bool change = true);
Function<void(int value)> on_change;