mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
fix: minimize window button not work on Windows 10 (#501)
This commit is contained in:
parent
f77e06cc61
commit
983607e708
1 changed files with 2 additions and 2 deletions
|
@ -201,9 +201,9 @@ namespace SourceGit.Native
|
||||||
|
|
||||||
private void FixWindowFrameOnWin10(Window w)
|
private void FixWindowFrameOnWin10(Window w)
|
||||||
{
|
{
|
||||||
if (w.WindowState != WindowState.Normal)
|
if (w.WindowState == WindowState.Maximized || w.WindowState == WindowState.FullScreen)
|
||||||
w.SystemDecorations = SystemDecorations.Full;
|
w.SystemDecorations = SystemDecorations.Full;
|
||||||
else
|
else if (w.WindowState == WindowState.Normal)
|
||||||
w.SystemDecorations = SystemDecorations.BorderOnly;
|
w.SystemDecorations = SystemDecorations.BorderOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue