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 TabContainer regressions related to switching tabs in certain cases #91188

Conversation

YeldhamDev
Copy link
Member

@YeldhamDev YeldhamDev commented Apr 25, 2024

Fixes #91135.

Thanks to @jsjtxietian for pointing me in the right direction and saving me time.

@YeldhamDev YeldhamDev added this to the 4.3 milestone Apr 25, 2024
@YeldhamDev YeldhamDev requested a review from a team as a code owner April 25, 2024 22:18
@YeldhamDev YeldhamDev marked this pull request as draft April 25, 2024 22:19
@YeldhamDev YeldhamDev force-pushed the love_fixing_other_peoples_regressions branch from 23454fc to 1c32fa2 Compare April 26, 2024 06:07
@YeldhamDev YeldhamDev marked this pull request as ready for review April 26, 2024 06:09
@KoBeWi
Copy link
Member

KoBeWi commented May 1, 2024

partially fixes #91135

You should unlink the issue then. I tested and the visibility problem is not fixed.

@kitbdev
Copy link
Contributor

kitbdev commented May 1, 2024

We could make the tab visibility callback only apply in the editor when it is part of the edited scene, since that is where it is most intended for.

Also, the reason it used NOTIFICATION_POST_ENTER_TREE is to let the TabContainer's children be set up first, but I guess it isn't needed.

@YeldhamDev
Copy link
Member Author

You should unlink the issue then. I tested and the visibility problem is not fixed.

Wait, I just forgot to update the PR's description, because both issues are fixed on my end. What happens in the visibility test scene on your end?

@KoBeWi
Copy link
Member

KoBeWi commented May 1, 2024

Nevermind, I didn't test properly.

@akien-mga akien-mga merged commit 098a4e9 into godotengine:master May 2, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@YeldhamDev YeldhamDev deleted the love_fixing_other_peoples_regressions branch May 2, 2024 13:47
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.

Setting current_tab of a tab container doesn't work when it's not visible or not ready
5 participants