Skip to content

Commit

Permalink
Fix constant editor redraw after shortcut
Browse files Browse the repository at this point in the history
Introduced by me by mistake on godotengine#71328. Fixes godotengine#71652.
  • Loading branch information
reduz authored and Streq committed Feb 9, 2023
1 parent 0965e48 commit bcfb73f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/gui/base_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit bcfb73f

Please sign in to comment.