Explorar el Código

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

Rindbee hace 3 años
padre
commit
a3b23f6b67
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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;
 	}