mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Merge pull request #112935 from kitbdev/fix-selecting-disabled-tabs
Fix disabled tabs in TabBar are selectable
This commit is contained in:
commit
b2b30b437b
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.
|
||||
if (selecting) {
|
||||
if (selecting && !tabs[found].disabled) {
|
||||
if (deselect_enabled && get_current_tab() == found) {
|
||||
set_current_tab(-1);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue