瀏覽代碼

Fix stale tab names in TabContainer

Yuri Sizov 4 年之前
父節點
當前提交
0c41411fe8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/tab_container.cpp

+ 1 - 0
scene/gui/tab_container.cpp

@@ -1023,6 +1023,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);
+	_refresh_texts();
 	update();
 }