1
0
Fork 0

one shot timer

This commit is contained in:
suddjian 2025-02-18 18:29:10 -08:00
parent 938dc17599
commit 7323093dae
1 changed files with 1 additions and 1 deletions

View File

@ -6054,7 +6054,7 @@ Tree::Tree() {
add_child(range_click_timer, false, INTERNAL_MODE_FRONT);
dropping_unfold_timer = memnew(Timer);
dropping_unfold_timer->set_wait_time(theme_cache.dragging_unfold_wait_msec * 0.001);
dropping_unfold_timer->set_one_shot(true);
dropping_unfold_timer->connect("timeout", callable_mp(this, &Tree::_on_dropping_unfold_timer_timeout));
add_child(dropping_unfold_timer);