Skip to content

Commit 7c20645

Browse files
committed
Reset button state when button is disabled
1 parent cae3d72 commit 7c20645

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/gui/base_button.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ void BaseButton::set_disabled(bool p_disabled) {
213213
}
214214
status.press_attempt = false;
215215
status.pressing_inside = false;
216+
status.pressed_down_with_focus = false;
216217
}
217218
queue_redraw();
218219
update_minimum_size();

0 commit comments

Comments
 (0)