Skip to content

Commit

Permalink
NR: Windows - fix save when App is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Sep 1, 2023
1 parent 25affc8 commit 7387017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/NewsReader/NewsReader.Presentation/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ protected override Window CreateWindow(IActivationState? activationState)
window.MinimumHeight = 400;
window.Created += (_, _) => OnCreated();
window.Deactivated += (_, _) => OnDeactivated();
#if WINDOWS
window.Destroying += (_, _) => OnDeactivated();
#endif
window.Resumed += (_, _) => OnResumed();
return window;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Waf.NewsReader.Presentation.Services;

// Add App.xaml.key.cs file with:
// Add WebStorageService.keys.cs file with:
//partial class WebStorageService
//{
// static partial void GetApplicationId(ref string applicationId)
Expand Down

0 comments on commit 7387017

Please sign in to comment.