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

Only prompt for WASM update if it changed #1601

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

neilenns
Copy link
Contributor

Fixes #1594

  • Use the existing WasmModulesAreDifferent() method as a condition of prompting on first launch
  • Update WasmModulesAreDifferent() so it no longer tests the events.txt file.
  • Use Path.Combine() to create the path to the wasm module

To test this you'll need to delete your user.config file for mobiflight, which is located in %localappdata%\MobiFlight and then in one of the gibberish folders with the matching app version.

Comment on lines -170 to -171
installedEvents = CalculateMD5(CommunityFolder + $@"\mobiflight-event-module\modules\{WasmEventsTxtFile}");
mobiflightEvents = CalculateMD5($@".\MSFS2020-module\mobiflight-event-module\modules\{WasmEventsTxtFile}");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was causing a crash locally because the file doesn't exist anymore in a normal install. Removed since it's no longer needed.

Copy link

Build for this pull request:
MobiFlightConnector.zip

@DocMoebiuz DocMoebiuz merged commit 2ce0501 into MobiFlight:main Jan 25, 2024
1 check passed
@DocMoebiuz DocMoebiuz added the enhancement Improvement of an existing feature label Feb 4, 2024
@DocMoebiuz DocMoebiuz added bug Something isn't working in a officially released version hotfix labels Feb 5, 2024
DocMoebiuz added a commit that referenced this pull request Feb 5, 2024
Co-authored-by: Neil Enns <neile@live.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in a officially released version enhancement Improvement of an existing feature hotfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show WASM installation dialog only when update is needed
2 participants