mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibGUI: Update {in,de}crement buttons when setting a new spin box range
This commit is contained in:
parent
43f87c67f2
commit
5b46d16b4d
Notes:
sideshowbarker
2024-07-17 07:48:42 +09:00
Author: https://github.com/networkException
Commit: 5b46d16b4d
Pull-request: https://github.com/SerenityOS/serenity/pull/15145
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);
|
||||
}
|
||||
|
||||
m_increment_button->set_enabled(m_value < m_max);
|
||||
m_decrement_button->set_enabled(m_value > m_min);
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue