From 3c38f681bde57345806b0e2b8cc4d702ccf0a5df Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 29 Mar 2024 12:15:52 +0800 Subject: [PATCH] fix: disable custom window resizer on Linux platform if Window.WindowState != WindowState.Normal --- src/SourceGit/Converters/WindowStateConverters.cs | 3 +++ src/SourceGit/Views/Blame.axaml | 2 +- src/SourceGit/Views/FileHistories.axaml | 2 +- src/SourceGit/Views/Launcher.axaml | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SourceGit/Converters/WindowStateConverters.cs b/src/SourceGit/Converters/WindowStateConverters.cs index 050f5457..e725246d 100644 --- a/src/SourceGit/Converters/WindowStateConverters.cs +++ b/src/SourceGit/Converters/WindowStateConverters.cs @@ -51,5 +51,8 @@ namespace SourceGit.Converters return Application.Current?.FindResource("Icons.Window.Maximize") as StreamGeometry; } }); + + public static FuncValueConverter IsNormal = + new FuncValueConverter(state => state == WindowState.Normal); } } \ No newline at end of file diff --git a/src/SourceGit/Views/Blame.axaml b/src/SourceGit/Views/Blame.axaml index 9742228d..06bd43e0 100644 --- a/src/SourceGit/Views/Blame.axaml +++ b/src/SourceGit/Views/Blame.axaml @@ -91,7 +91,7 @@ - + - + - +