fix: right caption buttons should not visible on macOS (#1311)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-05-13 22:34:53 +08:00
parent 7bb4e355bd
commit 0e61a0196b
No known key found for this signature in database

View file

@ -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()