mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix disabled tabs in TabBar are selectable
This commit is contained in:
parent
68410acc61
commit
472a26e895
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ void TabBar::gui_input(const Ref<InputEvent> &p_event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Selecting a tab.
|
// Selecting a tab.
|
||||||
if (selecting) {
|
if (selecting && !tabs[found].disabled) {
|
||||||
if (deselect_enabled && get_current_tab() == found) {
|
if (deselect_enabled && get_current_tab() == found) {
|
||||||
set_current_tab(-1);
|
set_current_tab(-1);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue