Update fixes

This commit is contained in:
2024-02-23 21:15:08 +01:00
parent 5fe8c22b8f
commit 5b4bda55ed
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ public class ItemToImageConverter : IValueConverter
if (path.Type == ImagePathType.Absolute)
{
source = SvgSource.Load<SvgSource>(path.Path!, null);
source = SvgSource.Load(path.Path!, null);
}
else if (path.Type == ImagePathType.Raw)
{
@@ -37,12 +37,12 @@ public class ItemToImageConverter : IValueConverter
}
else
{
source = SvgSource.Load<SvgSource>("avares://FileTime.GuiApp.App" + path.Path, null);
source = SvgSource.Load("avares://FileTime.GuiApp.App" + path.Path, null);
}
}
catch
{
source = SvgSource.Load<SvgSource>("avares://FileTime.GuiApp.App/Assets/material/file.svg", null);
source = SvgSource.Load("avares://FileTime.GuiApp.App/Assets/material/file.svg", null);
}
return new SvgImage {Source = source};

View File

@@ -43,6 +43,7 @@
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Syroot.Windows.IO.KnownFolders" Version="1.3.0" />
<PackageReference Include="System.Drawing.Common" Version="8.0.2" />
</ItemGroup>
<ItemGroup>