mirror of https://github.com/godotengine/godot
Update SpinBox arrows on constrain change
This commit is contained in:
parent
3d91a48298
commit
d8cd5f8a3c
|
|
@ -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]];
|
||||
|
|
|
|||
Loading…
Reference in New Issue