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 27, 2024
m4gr3d added a commit to m4gr3d/godot that referenced this pull request Jul 16, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
sorascode pushed a commit to sorascode/godot-soras-version that referenced this pull request Jul 22, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
Akeal pushed a commit to Akeal/godot that referenced this pull request Jul 24, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
Luis-Wong pushed a commit to Luis-Wong/godot that referenced this pull request Jul 26, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
MBCX pushed a commit to Sunfly-Studios/godot that referenced this pull request Jul 26, 2024
godotengine/godot#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
RadiantUwU pushed a commit to RadiantUwU/godot that referenced this pull request Jul 27, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
2nafish117 pushed a commit to 2nafish117/godot that referenced this pull request Aug 5, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
chryan pushed a commit to chryan/godot that referenced this pull request Aug 6, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
maidopi-usagi pushed a commit to maidopi-usagi/godot that referenced this pull request Sep 11, 2024
godotengine#92032 updated the logic to enable / disable the remote debug button, and in doing so added a `can_export` check.

However, no events / notifications are dispatched when the value of the `can_export` check changes, which in turn prevents the logic used to enable / disable the remote debug button from running again.

The fix consists then in removing the `can_export` check, so that the remote debug button shows as `enabled` when a preset is present and is runnable.
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