Fix uninteractable singular tab in TabBar

(cherry picked from commit 96fdb030ec)
This commit is contained in:
Michael Alexsander 2021-10-27 16:13:04 -03:00 committed by Rémi Verschelde
parent 92aede4e33
commit d5adb9e4b4
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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;
}