From d8cd5f8a3cc46d41bfe56ecbceab27c143947df5 Mon Sep 17 00:00:00 2001 From: kobewi Date: Tue, 23 Sep 2025 15:09:07 +0200 Subject: [PATCH] Update SpinBox arrows on constrain change --- scene/gui/spin_box.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp index 429040563e3..68d3d5f8c3a 100644 --- a/scene/gui/spin_box.cpp +++ b/scene/gui/spin_box.cpp @@ -497,6 +497,10 @@ void SpinBox::_notification(int p_what) { _update_buttons_state_for_current_value(); } break; + case NOTIFICATION_READY: { + connect(CoreStringName(changed), callable_mp(this, &SpinBox::_update_buttons_state_for_current_value)); + } break; + case NOTIFICATION_VISIBILITY_CHANGED: drag.allowed = false; [[fallthrough]];