Update fixes
This commit is contained in:
@@ -29,7 +29,7 @@ public class ItemToImageConverter : IValueConverter
|
|||||||
|
|
||||||
if (path.Type == ImagePathType.Absolute)
|
if (path.Type == ImagePathType.Absolute)
|
||||||
{
|
{
|
||||||
source = SvgSource.Load<SvgSource>(path.Path!, null);
|
source = SvgSource.Load(path.Path!, null);
|
||||||
}
|
}
|
||||||
else if (path.Type == ImagePathType.Raw)
|
else if (path.Type == ImagePathType.Raw)
|
||||||
{
|
{
|
||||||
@@ -37,12 +37,12 @@ public class ItemToImageConverter : IValueConverter
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
source = SvgSource.Load<SvgSource>("avares://FileTime.GuiApp.App" + path.Path, null);
|
source = SvgSource.Load("avares://FileTime.GuiApp.App" + path.Path, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
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};
|
return new SvgImage {Source = source};
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
|
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
|
||||||
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
|
||||||
<PackageReference Include="Syroot.Windows.IO.KnownFolders" Version="1.3.0" />
|
<PackageReference Include="Syroot.Windows.IO.KnownFolders" Version="1.3.0" />
|
||||||
|
<PackageReference Include="System.Drawing.Common" Version="8.0.2" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user