From 30dead8a5e075373bcd333ef40bc12f2ca8b24ce Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 20 Apr 2024 16:12:45 +0800 Subject: [PATCH] Fix TabContainer not updating content rect after toggling tab icon --- scene/gui/tab_container.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 7b36c54cc19..3f3af7bbf56 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -30,7 +30,6 @@ #include "tab_container.h" -#include "core/message_queue.h" #include "scene/gui/box_container.h" #include "scene/gui/label.h" #include "scene/gui/texture_rect.h" @@ -874,6 +873,7 @@ void TabContainer::set_tab_icon(int p_tab, const Ref &p_icon) { Control *child = get_tab_control(p_tab); ERR_FAIL_COND(!child); child->set_meta("_tab_icon", p_icon); + _repaint(); update(); } Ref TabContainer::get_tab_icon(int p_tab) const {