summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2023-06-27 20:33:13 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2023-06-27 20:33:13 -0300
commit7ffad29df818c41baf5d1fc98690874b48d586fe (patch)
tree580fab02539aad7fe40936b9345f598e12c60b13
parent1b3bf485263c4e2ebc8bcdb1d71b58064f4dc5bc (diff)
downloadredot-engine-7ffad29df818c41baf5d1fc98690874b48d586fe.tar.gz
Fix delay on tab resizing when (un)hovering tabs
-rw-r--r--scene/gui/tab_bar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp
index 35564eb458..959a51eff9 100644
--- a/scene/gui/tab_bar.cpp
+++ b/scene/gui/tab_bar.cpp
@@ -881,6 +881,8 @@ void TabBar::_update_hover() {
if (hover != -1) {
emit_signal(SNAME("tab_hovered"), hover);
}
+
+ _update_cache();
queue_redraw();
}
@@ -988,6 +990,7 @@ void TabBar::_on_mouse_exited() {
highlight_arrow = -1;
dragging_valid_tab = false;
+ _update_cache();
queue_redraw();
}