Fix delay on tab resizing when (un)hovering tabs

(cherry picked from commit 7ffad29df8)
This commit is contained in:
Michael Alexsander 2023-06-27 20:33:13 -03:00 committed by Yuri Sizov
parent 4ec566fae2
commit 3bb05da45f
1 changed files with 3 additions and 0 deletions

View File

@ -881,6 +881,8 @@ void TabBar::_update_hover() {
if (hover != -1) { if (hover != -1) {
emit_signal(SNAME("tab_hovered"), hover); emit_signal(SNAME("tab_hovered"), hover);
} }
_update_cache();
queue_redraw(); queue_redraw();
} }
@ -988,6 +990,7 @@ void TabBar::_on_mouse_exited() {
highlight_arrow = -1; highlight_arrow = -1;
dragging_valid_tab = false; dragging_valid_tab = false;
_update_cache();
queue_redraw(); queue_redraw();
} }