Fix uninteractable singular tab in `TabBar`
(cherry picked from commit 96fdb030ec
)
This commit is contained in:
parent
92aede4e33
commit
d5adb9e4b4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue