Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorixon committed Nov 11, 2023
1 parent aa09b3c commit eb46ce4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
Binary file added Images/GameBanana_v1.6.1/CharacterOverview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/GameBanana_v1.6.1/Settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
7 changes: 5 additions & 2 deletions src/GIMI-ModManager.WinUI/Services/ActivationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ await _localSettingsService.SaveSettingAsync(CharacterOverviewSettings.Key,
new CharacterOverviewSettings());
}


private bool _isExiting = false;
// To allow jasm to save settings before exiting, we need to handle the first close event.
// Once finished saving the handler calls itself again, but this time it will exit.
private bool _isExiting;

private async void OnApplicationExit(object sender, WindowEventArgs args)
{
Expand Down Expand Up @@ -206,6 +207,8 @@ private async void OnApplicationExit(object sender, WindowEventArgs args)

await saveSettingsTask;
_logger.Debug("JASM shutdown complete.");

// Call the handler again, this time it will exit.
await Task.Run(() =>
{
_isExiting = true;
Expand Down

0 comments on commit eb46ce4

Please sign in to comment.