mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
fixed error where mrng would never close when set to "minimize to tray on close"
This commit is contained in:
@@ -372,9 +372,13 @@ namespace mRemoteNG.UI.Forms
|
||||
if (Runtime.NotificationAreaIcon == null)
|
||||
Runtime.NotificationAreaIcon = new NotificationAreaIcon();
|
||||
|
||||
Hide();
|
||||
e.Cancel = true;
|
||||
return;
|
||||
if (WindowState == FormWindowState.Normal || WindowState == FormWindowState.Maximized)
|
||||
{
|
||||
Hide();
|
||||
WindowState = FormWindowState.Minimized;
|
||||
e.Cancel = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(Runtime.WindowList == null || Runtime.WindowList.Count == 0))
|
||||
|
||||
Reference in New Issue
Block a user