Procházet zdrojové kódy

Fix uninteractable singular tab in `TabBar`

Michael Alexsander před 3 roky
rodič
revize
96fdb030ec
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;
 			}