From 96fdb030ecbc3aa93041c4cc752d9fc5336e0c67 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Wed, 27 Oct 2021 16:13:04 -0300 Subject: [PATCH] Fix uninteractable singular tab in `TabBar` --- scene/gui/tab_bar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp index 78b58c773a7..780614302c6 100644 --- a/scene/gui/tab_bar.cpp +++ b/scene/gui/tab_bar.cpp @@ -222,7 +222,7 @@ void TabBar::gui_input(const Ref &p_event) { } } - if (max_drawn_tab <= 0) { + if (tabs.is_empty()) { // Return early if there are no actual tabs to handle input for. return; }