diff options
author | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-10-27 16:13:04 -0300 |
---|---|---|
committer | Michael Alexsander <michaelalexsander@protonmail.com> | 2021-10-27 16:13:04 -0300 |
commit | 96fdb030ecbc3aa93041c4cc752d9fc5336e0c67 (patch) | |
tree | 4c470bd0ed9c21721b936c3be578ff0154a56efa /scene | |
parent | 16edca841599b216909ac2ed569cfa9bdc631176 (diff) |
Fix uninteractable singular tab in `TabBar`
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/tab_bar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_bar.cpp b/scene/gui/tab_bar.cpp index 78b58c773a..780614302c 100644 --- a/scene/gui/tab_bar.cpp +++ b/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; } |