Skip to content

Commit

Permalink
Don't set maximized config when minimizing
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Nov 5, 2018
1 parent a6938aa commit 4379f80
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions GUI/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,9 +1134,13 @@ private void UpdateTrayState()
{
minimizeNotifyIcon.Visible = true;

if (minimizeToTray && WindowState == FormWindowState.Minimized)
if (WindowState == FormWindowState.Minimized)
{
Hide();
if (minimizeToTray)
{
// Remove our taskbar entry
Hide();
}
}
else
{
Expand Down

0 comments on commit 4379f80

Please sign in to comment.