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

Disable remote debug button when there are no runnable presets #92032

Merged
merged 1 commit into from
May 17, 2024

Conversation

hakro
Copy link
Contributor

@hakro hakro commented May 16, 2024

Fixes #91981

Instead of iterating over the platforms, I changed the code to iterate over the presets , and get the platform from there, while also checking that they are Runnable. So if there are no presets, nothing happens.

Also, once that's fixed, I found another bug, where the Remote Debug button does not update when a Web preset is added, modified, or deleted. That was due to the fact that the poll_export method does not check the validity of the preset options anymore. So I brought that back in EditorExportPlatformWeb::poll_export()

@hakro hakro requested a review from a team as a code owner May 16, 2024 22:21
@akien-mga akien-mga added this to the 4.3 milestone May 16, 2024
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@akien-mga akien-mga merged commit 375e5be into godotengine:master May 17, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@hakro hakro deleted the fix-oneclick-web-always-on branch May 17, 2024 09:19
adamscott added a commit to adamscott/godot that referenced this pull request May 17, 2024
adamscott added a commit to adamscott/godot that referenced this pull request May 27, 2024
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.

One-click deploy to web visible in new projects (without export setup)
2 participants