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 first time of Toggle Last Opened Bottom Panel opens Output panel #94040

Merged

Conversation

Hilderin
Copy link
Contributor

@Hilderin Hilderin commented Jul 7, 2024

The main problem was that le FileSystemDock was not the first in EditorBottomPanel::items even if the button was.

Also, the visibility of the moved panel at the bottom was set to visible even if they were not supposed on editor startup. That was causing problem when calling _switch_to_item to display the FileSystemDock, it was already visible so the function exited early making the panel not resizable and the toggle not working.

@Hilderin Hilderin requested review from a team as code owners July 7, 2024 16:17
@KoBeWi KoBeWi added this to the 4.3 milestone Jul 7, 2024
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Tested locally, it works as expected.

PS: I noticed that when you move the FileSystem dock back to the side, pressing Ctrl + J won't toggle the Output panel (which then becomes the first bottom panel on the list). Nothing will happen when pressing Ctrl + J, which feels strange. This issue also occurs in master.

@Hilderin
Copy link
Contributor Author

Hilderin commented Jul 7, 2024

Thanks for testing! I'll probably look into this issue a bit later today.

@akien-mga akien-mga merged commit 56df419 into godotengine:master Jul 7, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

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.

First time of Toggle Last Opened Bottom Panel opens Output panel
4 participants