2
0
Эх сурвалжийг харах

Merge pull request #61489 from Rindbee/reset-buttons_visible-to-false-if-tabs-is-empty

Reset buttons_visible to false while tabs is empty in TabBar::_update_cache
Rémi Verschelde 3 жил өмнө
parent
commit
cea54a0357
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;
 	}