From 983607e70881824e5e5a885980c2f1210c66c11e Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 23 Sep 2024 14:44:23 +0800 Subject: [PATCH] fix: minimize window button not work on Windows 10 (#501) --- src/Native/Windows.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Native/Windows.cs b/src/Native/Windows.cs index b02112cc..6ca0bbb0 100644 --- a/src/Native/Windows.cs +++ b/src/Native/Windows.cs @@ -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; }