Skip to content

Commit

Permalink
fix(ui): closing notify icon
Browse files Browse the repository at this point in the history
  • Loading branch information
DorielRivalet committed Apr 30, 2023
1 parent 64a7174 commit 1506577
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MHFZ_Overlay/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2784,6 +2784,8 @@ private void ReloadButton_Key()
{
Cleanup();
databaseManager.StoreSessionTime(this);
_notifyIcon.Visible = false;
_notifyIcon.Icon = null;
_notifyIcon.Dispose();
System.Windows.Forms.Application.Restart();
System.Windows.Application.Current.Shutdown();
Expand Down Expand Up @@ -2817,6 +2819,8 @@ private void CloseButton_Key()
{
Cleanup();
databaseManager.StoreSessionTime(this);
_notifyIcon.Visible = false;
_notifyIcon.Icon = null;
_notifyIcon.Dispose();
Environment.Exit(0);
}
Expand Down

0 comments on commit 1506577

Please sign in to comment.