Skip to content

Commit 092dc74

Browse files
committed
Merge pull request godotengine#107088 from ProgrammerOnCoffee/make-shortcut-timer-internal
Make `BaseButton`s' shortcut feedback timers internal
2 parents 3fbebdf + 360ee10 commit 092dc74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/base_button.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ void BaseButton::shortcut_input(const Ref<InputEvent> &p_event) {
452452
if (shortcut_feedback_timer == nullptr) {
453453
shortcut_feedback_timer = memnew(Timer);
454454
shortcut_feedback_timer->set_one_shot(true);
455-
add_child(shortcut_feedback_timer);
455+
add_child(shortcut_feedback_timer, false, INTERNAL_MODE_BACK);
456456
shortcut_feedback_timer->set_wait_time(GLOBAL_GET_CACHED(double, "gui/timers/button_shortcut_feedback_highlight_time"));
457457
shortcut_feedback_timer->connect("timeout", callable_mp(this, &BaseButton::_shortcut_feedback_timeout));
458458
}

0 commit comments

Comments
 (0)