Skip to content

Commit

Permalink
Merge pull request #28656 from YeldhamDev/tabcontainer_icon_title_update
Browse files Browse the repository at this point in the history
Make 'TabContainer' update when icon/title is changed
  • Loading branch information
YeldhamDev authored May 3, 2019
2 parents c2251ea + 37f4d51 commit a5dfb3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/tab_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {

Expand Down

0 comments on commit a5dfb3a

Please sign in to comment.