Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disabled tabs being selected when removing the current one #83963

Merged
merged 1 commit into from
Oct 28, 2023

Conversation

YeldhamDev
Copy link
Member

Currently, if a tab is removed from TabBar/Container, it will change to the tab that has replaced the previous index, even if the tab is disabled/hidden. This PR now makes it try to pick an active tab first, and only falling back to them if no valid one was found.

This PR also fixes a bug with the select_*_available() methods selecting hidden tabs.

Copy link
Member

@SaracenOne SaracenOne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this seems fine and sensible to me from what I can see here 👍

@akien-mga akien-mga merged commit 17da2c5 into godotengine:master Oct 28, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YeldhamDev YeldhamDev deleted the try_active_tabs_first branch October 28, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants