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

Merge pull request #110817 from KoBeWi/changes_spin_the_box

Update SpinBox arrows on constrain change
This commit is contained in:
Rémi Verschelde
2025-12-18 23:30:43 +01:00

View File

@@ -510,6 +510,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]];