summaryrefslogtreecommitdiffstats
path: root/scene/gui/base_button.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-01-21 10:54:45 +0100
committerJuan Linietsky <reduzio@gmail.com>2023-01-21 10:54:45 +0100
commit51777a2914dc46f2831752b74db6276369df0905 (patch)
tree5ad4cc4b88088f4b1b5334a6d2745d042926c40e /scene/gui/base_button.cpp
parent41cfd2cf509bbe7e018c605b2d974167df220ee8 (diff)
downloadredot-engine-51777a2914dc46f2831752b74db6276369df0905.tar.gz
Fix constant editor redraw after shortcut
Introduced by me by mistake on #71328. Fixes #71652.
Diffstat (limited to 'scene/gui/base_button.cpp')
-rw-r--r--scene/gui/base_button.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/base_button.cpp b/scene/gui/base_button.cpp
index d0326290ac..472299b135 100644
--- a/scene/gui/base_button.cpp
+++ b/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));