From e2da0d364348712586154ee4307990aba8d792d9 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 11 Aug 2024 09:18:06 +0800 Subject: [PATCH] project: downgrade AvaloniaUI to 11.0.13 --- src/SourceGit.csproj | 10 +++++----- src/Views/CommitRefsPresenter.cs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SourceGit.csproj b/src/SourceGit.csproj index 8958b927..c1fb8a4a 100644 --- a/src/SourceGit.csproj +++ b/src/SourceGit.csproj @@ -37,12 +37,12 @@ - - - - + + + + + - diff --git a/src/Views/CommitRefsPresenter.cs b/src/Views/CommitRefsPresenter.cs index 21e506e2..f941d4a5 100644 --- a/src/Views/CommitRefsPresenter.cs +++ b/src/Views/CommitRefsPresenter.cs @@ -158,7 +158,7 @@ namespace SourceGit.Views IsTag = decorator.Type == Models.DecoratorType.Tag, }; - var geo = null as StreamGeometry; + StreamGeometry geo; switch (decorator.Type) { case Models.DecoratorType.CurrentBranchHead: @@ -176,7 +176,7 @@ namespace SourceGit.Views break; } - var drawGeo = geo.Clone(); + var drawGeo = geo!.Clone(); var iconBounds = drawGeo.Bounds; var translation = Matrix.CreateTranslation(-(Vector)iconBounds.Position); var scale = Math.Min(8.0 / iconBounds.Width, 8.0 / iconBounds.Height);