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

fix: Move AppViewModel TaskStatus to update on main thread #1218

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

dragonzkiller
Copy link
Member

Fixes persistent crash on deployment in Mod Manager

To reproduce crash:

  1. Go to Mod Manager screen
  2. Refresh to show all mods if none listed
  3. Force Deploy all mods
  4. Watch Crash when progress reaches step 5/5

This occurs when TaskStatus is updated by ProgressService_PropertyChanged but not on the main thread, causing "System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it." This change invokes the status update on the main thread when ProgressService_PropertyChanged is called.

- fixes peristent crash on deployment in Mod Manager
@dragonzkiller dragonzkiller changed the title Move AppViewModel TaskStatus to update on main thread fix: Move AppViewModel TaskStatus to update on main thread Mar 13, 2023
@dragonzkiller dragonzkiller added bug p2 Medium priority labels Mar 13, 2023
@rfuzzo rfuzzo merged commit c1b4cd0 into main Mar 13, 2023
@rfuzzo rfuzzo deleted the progress-status branch March 13, 2023 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug p2 Medium priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants