diff --git a/Userland/Libraries/LibGUI/SpinBox.cpp b/Userland/Libraries/LibGUI/SpinBox.cpp index 95e379c7a0..48e2a1f95a 100644 --- a/Userland/Libraries/LibGUI/SpinBox.cpp +++ b/Userland/Libraries/LibGUI/SpinBox.cpp @@ -69,6 +69,10 @@ void SpinBox::set_value(int value, AllowCallback allow_callback) if (m_value == value) return; m_value = value; + + m_increment_button->set_enabled(m_value < m_max); + m_decrement_button->set_enabled(m_value > m_min); + m_editor->set_text(String::number(value)); update(); if (on_change && allow_callback == AllowCallback::Yes)