mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 19:02:39 +08:00
fix<Window>: fix window can NOT minimized when WindowState is Maximized
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user