From 37f4d51a755f8afb053544e1e63249f8659f6a2e Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Fri, 3 May 2019 14:52:36 -0300 Subject: [PATCH] Make 'TabContainer' update when icon/title is changed Fixes #28655. --- scene/gui/tab_container.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 6997c2809ca..27906e52c9c 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -732,6 +732,7 @@ void TabContainer::set_tab_title(int p_tab, const String &p_title) { Control *child = _get_tab(p_tab); ERR_FAIL_COND(!child); child->set_meta("_tab_name", p_title); + update(); } String TabContainer::get_tab_title(int p_tab) const { @@ -749,6 +750,7 @@ void TabContainer::set_tab_icon(int p_tab, const Ref &p_icon) { Control *child = _get_tab(p_tab); ERR_FAIL_COND(!child); child->set_meta("_tab_icon", p_icon); + update(); } Ref TabContainer::get_tab_icon(int p_tab) const {