mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
LibGUI: Update {in,de}crement buttons when setting a new spin box range
This commit is contained in:
parent
43f87c67f2
commit
5b46d16b4d
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ void SpinBox::set_range(int min, int max, AllowCallback allow_callback)
|
||||||
on_change(m_value);
|
on_change(m_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_increment_button->set_enabled(m_value < m_max);
|
||||||
|
m_decrement_button->set_enabled(m_value > m_min);
|
||||||
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue