From 51777a2914dc46f2831752b74db6276369df0905 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 21 Jan 2023 10:54:45 +0100 Subject: [PATCH] Fix constant editor redraw after shortcut Introduced by me by mistake on #71328. Fixes #71652. --- scene/gui/base_button.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp index d0326290ac5..472299b1353 100644 --- a/scene/gui/base_button.cpp +++ b/scene/gui/base_button.cpp @@ -385,6 +385,7 @@ void BaseButton::shortcut_input(const Ref &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));