diff options
| author | Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> | 2024-05-14 11:36:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 17:36:11 +0200 |
| commit | 47639e6eebe6f24bc6e0796fa27a750d9e99bd87 (patch) | |
| tree | 381a1fd85c559aa6d49ae29c50e50f41e58a85f6 /src | |
| parent | cd78adf07f14ccb8b19a9f539db963dea5976312 (diff) | |
Bump Avalonia.Svg (#6603)
* Bump Avalonia.Svg
* Remove using
* Bump Version
* Remove other reload
Diffstat (limited to 'src')
| -rw-r--r-- | src/Ryujinx/UI/Applet/ControllerAppletDialog.axaml.cs | 5 | ||||
| -rw-r--r-- | src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/Ryujinx/UI/Applet/ControllerAppletDialog.axaml.cs b/src/Ryujinx/UI/Applet/ControllerAppletDialog.axaml.cs index 5a98b164..6b999b1f 100644 --- a/src/Ryujinx/UI/Applet/ControllerAppletDialog.axaml.cs +++ b/src/Ryujinx/UI/Applet/ControllerAppletDialog.axaml.cs @@ -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; } diff --git a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs index 74da4597..89cc6496 100644 --- a/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs +++ b/src/Ryujinx/UI/ViewModels/Input/InputViewModel.cs @@ -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; } |
