Explorar el Código

Fix constant editor redraw after shortcut

Introduced by me by mistake on #71328. Fixes #71652.
Juan Linietsky hace 2 años
padre
commit
51777a2914
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      scene/gui/base_button.cpp

+ 1 - 0
scene/gui/base_button.cpp

@@ -385,6 +385,7 @@ void BaseButton::shortcut_input(const Ref<InputEvent> &p_event) {
 		if (shortcut_feedback) {
 			if (shortcut_feedback_timer == nullptr) {
 				shortcut_feedback_timer = memnew(Timer);
+				shortcut_feedback_timer->set_one_shot(true);
 				add_child(shortcut_feedback_timer);
 				shortcut_feedback_timer->set_wait_time(GLOBAL_GET("gui/timers/button_shortcut_feedback_highlight_time"));
 				shortcut_feedback_timer->connect("timeout", callable_mp(this, &BaseButton::_shortcut_feedback_timeout));