Fix disabled tabs in TabBar are selectable
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user