Skip to content

Commit

Permalink
feat(autoupdater): add restart overlay message
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Sep 7, 2023
1 parent ce9f6a9 commit 3d0a8e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions MHFZ_Overlay/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ public static async Task UpdateMyApp()
// optionally restart the app automatically, or ask the user if/when they want to restart
if (newVersion != null)
{
Logger.Info(CultureInfo.InvariantCulture, "Overlay has been updated, restarting application");
Logger.Info(CultureInfo.InvariantCulture, "Overlay has been updated, restarting application.");
splashScreen.Close(TimeSpan.FromSeconds(0.1));
MessageBox.Show("【MHF-Z】Overlay has been updated, restarting application.", "MHF-Z Overlay Update", MessageBoxButton.OK, MessageBoxImage.Information);
MessageBox.Show(
@"【MHF-Z】Overlay has been updated, restarting application.
If after overlay startup your settings did not transfer over, try restarting the overlay again without saving or changing any settings. Alternatively, find the old settings file by going into the parent folder when clicking the settings folder option.", "MHF-Z Overlay Update", MessageBoxButton.OK, MessageBoxImage.Information);
UpdateManager.RestartApp();
}
else
Expand Down

0 comments on commit 3d0a8e4

Please sign in to comment.