mirror of https://github.com/godotengine/godot
Fix uninteractable singular tab in `TabBar`
This commit is contained in:
parent
16edca8415
commit
96fdb030ec
|
|
@ -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 early if there are no actual tabs to handle input for.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue