Bump Avalonia.Svg (#6603)

* Bump Avalonia.Svg

* Remove using

* Bump Version

* Remove other reload
This commit is contained in:
Isaac Marovitz 2024-05-14 11:36:11 -04:00 committed by GitHub
parent cd78adf07f
commit 47639e6eeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 9 deletions

View File

@ -8,8 +8,8 @@
<PackageVersion Include="Avalonia.Desktop" Version="11.0.10" />
<PackageVersion Include="Avalonia.Diagnostics" Version="11.0.10" />
<PackageVersion Include="Avalonia.Markup.Xaml.Loader" Version="11.0.10" />
<PackageVersion Include="Avalonia.Svg" Version="11.0.0.16" />
<PackageVersion Include="Avalonia.Svg.Skia" Version="11.0.0.16" />
<PackageVersion Include="Avalonia.Svg" Version="11.0.0.18" />
<PackageVersion Include="Avalonia.Svg.Skia" Version="11.0.0.18" />
<PackageVersion Include="CommandLineParser" Version="2.9.1" />
<PackageVersion Include="Concentus" Version="1.1.7" />
<PackageVersion Include="DiscordRichPresence" Version="1.2.1.24" />

View File

@ -9,7 +9,6 @@ using Ryujinx.Ava.UI.Windows;
using Ryujinx.Common;
using Ryujinx.HLE.HOS.Applets;
using Ryujinx.HLE.HOS.Services.Hid;
using System;
using System.Linq;
using System.Threading.Tasks;
@ -104,9 +103,7 @@ namespace Ryujinx.Ava.UI.Applet
if (!string.IsNullOrWhiteSpace(path))
{
SvgSource source = new(default(Uri));
source.Load(EmbeddedResources.GetStream(path));
SvgSource source = SvgSource.LoadFromStream(EmbeddedResources.GetStream(path));
image.Source = source;
}

View File

@ -181,9 +181,7 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
if (!string.IsNullOrWhiteSpace(_controllerImage))
{
SvgSource source = new(default(Uri));
source.Load(EmbeddedResources.GetStream(_controllerImage));
SvgSource source = SvgSource.LoadFromStream(EmbeddedResources.GetStream(_controllerImage));
image.Source = source;
}