From 4379f808db2f34455e52f55def958e938e6542ea Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Mon, 5 Nov 2018 20:58:50 +0000 Subject: [PATCH] Don't set maximized config when minimizing --- GUI/Main.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GUI/Main.cs b/GUI/Main.cs index 8e326861c2..fe72af4482 100644 --- a/GUI/Main.cs +++ b/GUI/Main.cs @@ -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 {