Skip to content

Commit e2da0d3

Browse files
committed
project: downgrade AvaloniaUI to 11.0.13
1 parent 492859f commit e2da0d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/SourceGit.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
</ItemGroup>
3838

3939
<ItemGroup>
40-
<PackageReference Include="Avalonia" Version="11.1.2" />
41-
<PackageReference Include="Avalonia.Desktop" Version="11.1.2" />
42-
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.1.2" />
43-
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.1.2" />
40+
<PackageReference Include="Avalonia" Version="11.0.13" />
41+
<PackageReference Include="Avalonia.Desktop" Version="11.0.13" />
42+
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.13" />
43+
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.13" />
44+
<PackageReference Include="Avalonia.Diagnostics" Version="11.0.13" Condition="'$(Configuration)' == 'Debug'" />
4445
<PackageReference Include="Avalonia.AvaloniaEdit" Version="11.1.0" />
45-
<PackageReference Include="Avalonia.Diagnostics" Version="11.1.2" Condition="'$(Configuration)' == 'Debug'" />
4646
<PackageReference Include="AvaloniaEdit.TextMate" Version="11.1.0" />
4747
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
4848
<PackageReference Include="TextMateSharp.Grammars" Version="1.0.60" />

src/Views/CommitRefsPresenter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected override Size MeasureOverride(Size availableSize)
158158
IsTag = decorator.Type == Models.DecoratorType.Tag,
159159
};
160160

161-
var geo = null as StreamGeometry;
161+
StreamGeometry geo;
162162
switch (decorator.Type)
163163
{
164164
case Models.DecoratorType.CurrentBranchHead:
@@ -176,7 +176,7 @@ protected override Size MeasureOverride(Size availableSize)
176176
break;
177177
}
178178

179-
var drawGeo = geo.Clone();
179+
var drawGeo = geo!.Clone();
180180
var iconBounds = drawGeo.Bounds;
181181
var translation = Matrix.CreateTranslation(-(Vector)iconBounds.Position);
182182
var scale = Math.Min(8.0 / iconBounds.Width, 8.0 / iconBounds.Height);

0 commit comments

Comments
 (0)