diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-05-03 16:07:19 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-03 16:07:19 -0300 |
commit | a5dfb3ae5dccfb5874d4ac4d952fee7612817594 (patch) | |
tree | 90c1e1337f70dba931e7ee56efaeaa3293b68302 /scene/gui | |
parent | c2251eab51a45b73306863617b309e4666c87350 (diff) | |
parent | 37f4d51a755f8afb053544e1e63249f8659f6a2e (diff) |
Merge pull request #28656 from YeldhamDev/tabcontainer_icon_title_update
Make 'TabContainer' update when icon/title is changed
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index 6997c2809c..27906e52c9 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<Texture> &p_icon) { Control *child = _get_tab(p_tab); ERR_FAIL_COND(!child); child->set_meta("_tab_icon", p_icon); + update(); } Ref<Texture> TabContainer::get_tab_icon(int p_tab) const { |