Selaa lähdekoodia

Fix uninteractable singular tab in `TabBar`

(cherry picked from commit 96fdb030ecbc3aa93041c4cc752d9fc5336e0c67)
Michael Alexsander 4 vuotta sitten
vanhempi
commit
d5adb9e4b4
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      scene/gui/tabs.cpp

+ 1 - 1
scene/gui/tabs.cpp

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