LibGUI: Update {in,de}crement buttons when setting a new spin box range

This commit is contained in:
networkException
2022-09-06 18:18:23 +02:00
committed by Linus Groh
parent 43f87c67f2
commit 5b46d16b4d

View File

@@ -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();
}