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

Merge pull request #54320 from YeldhamDev/tabbar_close_last_fix

Rémi Verschelde 3 жил өмнө
parent
commit
3e26ad3a5f

+ 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 early if there are no actual tabs to handle input for.
 				return;
 				return;
 			}
 			}