Browse Source

Fix crash when trying to add `file://` to an `avares://` uri

pull/629/head
JT 7 months ago
parent
commit
f97cabc755
  1. 1
      StabilityMatrix.Avalonia/Converters/FileUriConverter.cs

1
StabilityMatrix.Avalonia/Converters/FileUriConverter.cs

@ -17,6 +17,7 @@ public class FileUriConverter : IValueConverter
return value switch
{
string str when str.StartsWith("avares") => new Uri(str),
string str => new Uri("file://" + str),
IFormattable formattable => new Uri("file://" + formattable.ToString(null, culture)),
_ => null

Loading…
Cancel
Save