mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibGUI: Update {in,de}crement buttons when setting a new spin box range
This commit is contained in:
committed by
Linus Groh
parent
43f87c67f2
commit
5b46d16b4d
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user