From 7c037263709dbaa0f2ac6fd3cc32779e3cbd91b5 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 22 Jun 2021 11:42:47 +0800 Subject: [PATCH] fix: fix window can NOT minimized when WindowState is Maximized --- src/Views/Controls/Window.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Controls/Window.cs b/src/Views/Controls/Window.cs index d152630a..24888763 100644 --- a/src/Views/Controls/Window.cs +++ b/src/Views/Controls/Window.cs @@ -56,7 +56,7 @@ namespace SourceGit.Views.Controls { if (w != null) { if (w.IsMaximized) { SystemCommands.MaximizeWindow(w); - } else { + } else if (w.WindowState != WindowState.Minimized) { SystemCommands.RestoreWindow(w); } }