Explorar o código

Merge pull request #54320 from YeldhamDev/tabbar_close_last_fix

Rémi Verschelde %!s(int64=3) %!d(string=hai) anos
pai
achega
3e26ad3a5f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/gui/tab_bar.cpp

+ 1 - 1
scene/gui/tab_bar.cpp

@@ -222,7 +222,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
 				}
 			}
 
-			if (max_drawn_tab <= 0) {
+			if (tabs.is_empty()) {
 				// Return early if there are no actual tabs to handle input for.
 				return;
 			}