Merge pull request #112935 from kitbdev/fix-selecting-disabled-tabs

Fix disabled tabs in TabBar are selectable
This commit is contained in:
Thaddeus Crews 2025-11-25 09:52:21 -06:00
commit b2b30b437b
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

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 {