Fix disabled tabs in TabBar are selectable

This commit is contained in:
kit
2025-11-18 17:00:39 -05:00
parent 68410acc61
commit 472a26e895

View File

@ -292,7 +292,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
}
// Selecting a tab.
if (selecting) {
if (selecting && !tabs[found].disabled) {
if (deselect_enabled && get_current_tab() == found) {
set_current_tab(-1);
} else {