Skip to content

Commit

Permalink
fix(app): Prevent NotifyIcon from being visibile when the app closes
Browse files Browse the repository at this point in the history
  • Loading branch information
schdck committed Apr 14, 2020
1 parent eea4254 commit 9e87b1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions RemoteFlix.UI.Desktop/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,14 @@ private void CreateTaskBarIcon()
Current.Shutdown();
}));
}

private void OnExit(object sender, ExitEventArgs e)
{
if(ApplicationIcon != null)
{
ApplicationIcon.Visible = false;
ApplicationIcon.Dispose();
}
}
}
}

0 comments on commit 9e87b1f

Please sign in to comment.