浏览代码

Reset buttons_visible to false while tabs is empty in TabBar::_update_cache

Rindbee 3 年之前
父节点
当前提交
a3b23f6b67
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      scene/gui/tab_bar.cpp

+ 1 - 0
scene/gui/tab_bar.cpp

@@ -862,6 +862,7 @@ void TabBar::_update_hover() {
 
 void TabBar::_update_cache() {
 	if (tabs.is_empty()) {
+		buttons_visible = false;
 		return;
 	}