mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
fix<Window>: fix window can NOT minimized when WindowState is Maximized
This commit is contained in:
parent
003ae01b13
commit
7c03726370
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ namespace SourceGit.Views.Controls {
|
||||||
if (w != null) {
|
if (w != null) {
|
||||||
if (w.IsMaximized) {
|
if (w.IsMaximized) {
|
||||||
SystemCommands.MaximizeWindow(w);
|
SystemCommands.MaximizeWindow(w);
|
||||||
} else {
|
} else if (w.WindowState != WindowState.Minimized) {
|
||||||
SystemCommands.RestoreWindow(w);
|
SystemCommands.RestoreWindow(w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue