Skip to content

Commit

Permalink
Make 'TabContainer' update when icon/title is changed
Browse files Browse the repository at this point in the history
Fixes godotengine#28655.

(cherry picked from commit 37f4d51)
  • Loading branch information
YeldhamDev authored and akien-mga committed Sep 26, 2019
1 parent 33b2d65 commit cd1bb5d
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 @@ -719,6 +719,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 @@ -736,6 +737,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 cd1bb5d

Please sign in to comment.