mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-05-01 06:15:41 +08:00
fix: minimize window button not work on Windows 10 (#501)
This commit is contained in:
@@ -201,9 +201,9 @@ namespace SourceGit.Native
|
||||
|
||||
private void FixWindowFrameOnWin10(Window w)
|
||||
{
|
||||
if (w.WindowState != WindowState.Normal)
|
||||
if (w.WindowState == WindowState.Maximized || w.WindowState == WindowState.FullScreen)
|
||||
w.SystemDecorations = SystemDecorations.Full;
|
||||
else
|
||||
else if (w.WindowState == WindowState.Normal)
|
||||
w.SystemDecorations = SystemDecorations.BorderOnly;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user