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

Make EditorFileDialog only created on demand in EditorResourcePicker #49068

Merged
merged 1 commit into from
May 25, 2021

Conversation

YuriSizov
Copy link
Contributor

My #47260 and #48854 PRs introduced a regression for the Inspector dock. An editor GUI deadlock can be triggered by opening a resource with a lot of sub-resources (such as a Theme resource). Apparently, always adding EditorFileDialog to a control inside of the EditorProperty makes the dock UI overwhelmed and when done enough times causes it to just hang in a perpetual attempt to re-adjust. In the old version this file dialog was created on demand only, and I can see why now. I've reintroduced this behavior to EditorResourcePicker.

Actually, even PopupMenu had a negative effect in the same situation, but it was way smaller. So it's likely all popups for some reason, with the editor file dialog being big enough to become a problem.


This also fixes a typo I left in the previous PR 🙃

@YuriSizov YuriSizov added this to the 4.0 milestone May 25, 2021
@YuriSizov YuriSizov requested a review from a team as a code owner May 25, 2021 15:45
@akien-mga akien-mga merged commit 554382d into godotengine:master May 25, 2021
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov added the cherrypick:3.x Considered for cherry-picking into a future 3.x release label May 25, 2021
@YuriSizov YuriSizov deleted the i-broke-inspector branch May 25, 2021 16:22
@YuriSizov YuriSizov removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Jun 10, 2021
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.

2 participants