Merge pull request #54320 from YeldhamDev/tabbar_close_last_fix

This commit is contained in:
Rémi Verschelde 2021-10-27 22:24:43 +02:00 committed by GitHub
commit 3e26ad3a5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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