From d441ea94aef8fe07026afea6ebb0c890d393f1cf Mon Sep 17 00:00:00 2001 From: JT Date: Sat, 13 Apr 2024 12:18:04 -0700 Subject: [PATCH] moar startswith --- StabilityMatrix.Avalonia/Converters/FileUriConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StabilityMatrix.Avalonia/Converters/FileUriConverter.cs b/StabilityMatrix.Avalonia/Converters/FileUriConverter.cs index fe745fc7..751f5368 100644 --- a/StabilityMatrix.Avalonia/Converters/FileUriConverter.cs +++ b/StabilityMatrix.Avalonia/Converters/FileUriConverter.cs @@ -17,7 +17,7 @@ public class FileUriConverter : IValueConverter 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), IFormattable formattable => new Uri("file://" + formattable.ToString(null, culture)), _ => null