fix<Window>: fix window can NOT minimized when WindowState is Maximized

This commit is contained in:
leo 2021-06-22 11:42:47 +08:00
parent 003ae01b13
commit 7c03726370

View file

@ -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);
}
}