From 0e61a0196b1c8137a8377108637e66217d03a266 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 13 May 2025 22:34:53 +0800 Subject: [PATCH] fix: right caption buttons should not visible on macOS (#1311) Signed-off-by: leo --- src/Views/Launcher.axaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Views/Launcher.axaml.cs b/src/Views/Launcher.axaml.cs index 3b171660..6104877a 100644 --- a/src/Views/Launcher.axaml.cs +++ b/src/Views/Launcher.axaml.cs @@ -31,7 +31,13 @@ namespace SourceGit.Views public bool HasRightCaptionButton { - get => OperatingSystem.IsWindows() || !Native.OS.UseSystemWindowFrame; + get + { + if (OperatingSystem.IsLinux()) + return !Native.OS.UseSystemWindowFrame; + + return OperatingSystem.IsWindows(); + } } public Launcher()