Browse Source

moar startswith

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

2
StabilityMatrix.Avalonia/Converters/FileUriConverter.cs

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

Loading…
Cancel
Save