1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Update SpinBox arrows on constrain change

This commit is contained in:
kobewi
2025-09-23 15:09:07 +02:00
parent 3d91a48298
commit d8cd5f8a3c

View File

@@ -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]];