Skip to content

Commit

Permalink
Fixed hanging application when closed during update (avoid Environmen…
Browse files Browse the repository at this point in the history
…t.Exit() call) (#12)
  • Loading branch information
M1S2 committed Sep 18, 2022
1 parent 215646a commit e535e1b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AssemblyInfoHelper/GitHub/UpdateUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static async Task RunUpdate(GitHubRelease targetRelease)
if (useInstaller) { await windowAssemblyInfo.ShowMessageAsync("Update", Properties.Resources.UpdateUtilUpdateFinishedInstallerString, MessageDialogStyle.Affirmative); }
else if (useBinaries) { await windowAssemblyInfo.ShowMessageAsync("Update", Properties.Resources.UpdateUtilUpdateFinishedBinariesString, MessageDialogStyle.Affirmative); }

Environment.Exit(0); // Terminate the running application so that the updater/installer can overwrite files
System.Windows.Application.Current.Shutdown(); // Closes the running application so that the updater/installer can overwrite files
}
catch (Exception ex)
{
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# AssemblyInfoHelper

## [v5.2.1]

- Fixed hanging application when closed during update (avoid Environment.Exit() call) (#12)
- Fixed non-working links to repository URL and tags (#11)

## [v5.2.0]

- Corrected encoding for WebBrowserMarkdown control to show german special characters
Expand Down

0 comments on commit e535e1b

Please sign in to comment.