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

Tweak the logic for successful WASM install #1903

Merged
merged 4 commits into from
Jan 9, 2025

Conversation

neilenns
Copy link
Contributor

@neilenns neilenns commented Jan 7, 2025

Fixes #1902

The core problem is the test for a successful install was this:

                if (Update2020Successful || Update2024Successful)

However, HandleWasmInstall() returns false if there was nothing to do (because the correct version is already installed). So users with an up-to-date 2020 install, and no 2024 install, would wind up with false as the return from each of the HandleWasmInstall() calls. That skips the success message and falls through to an error.

The fix is to:

  1. Default Update2020Successful and Update2024Successful to true
  2. Only call HandleWasmInstall() if the modules are "different" (which also includes non-existent)

At least I think this fixes it. I tested by hand-hacking the path to the MSFS2024 community folder to be non-existent (to simulate 2024 not being installed) and it works.

@neilenns neilenns requested a review from DocMoebiuz as a code owner January 7, 2025 02:12
Copy link

github-actions bot commented Jan 7, 2025

Build for this pull request:
MobiFlightConnector.zip

Copy link

github-actions bot commented Jan 9, 2025

Build for this pull request:
MobiFlightConnector.zip

@DocMoebiuz DocMoebiuz merged commit 65cdd12 into MobiFlight:main Jan 9, 2025
1 check passed
@DocMoebiuz DocMoebiuz added the bug_beta Something isn't working in a beta version, not in a stable released version label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug_beta Something isn't working in a beta version, not in a stable released version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WASM update incorrectly reports failure
2 participants