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:
parent
f90c224fc5
commit
99e7ad4b76
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue