소스 검색

Merge pull request #54320 from YeldhamDev/tabbar_close_last_fix

Rémi Verschelde 3 년 전
부모
커밋
3e26ad3a5f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 			}