[Issue] The software updater auto-cancels if the application previously crashed
Closed this issue · 1 comments
Describe the Issue
When using the software updater to download the latest update (in dev build 220401) it will automatically begin cancelling the download if the application crashed previously, as it doesn't get a chance to set the Properties.Settings.Default.CancelDownload
back to false
Environment:
- Windows Version: Windows 11
- Mod Manager Version: 220401 [Dev]
Proposed Resolution
Sometimes the PC doesn't launch the update code quick enough and the executable becomes "read-only" but not in practice, this causes the application to work fine - but doesn't clear the Properties.Settings.Default.CancelDownload
setting as it normally would on UpdateDownload.FormClosed( );
Program.cs
Add the following to Program.cs
so it automatically resets the setting on startup
Properties.Settings.Default.CancelDownload = false;
UpdateDownload.cs
Add the following to UpdateDownload.cs
for good measure in different locations:
Properties.Settings.Default.CancelDownload = false;