This commit is contained in:
Ottermandias 2024-06-04 15:53:35 +02:00
parent 699ae8e1fb
commit 48dd4bcadb

View file

@ -101,7 +101,7 @@ public class FileDialogService : IDisposable
private static string HandleRoot(string path) private static string HandleRoot(string path)
{ {
if (path.Length == 2 && path[1] == ':') if (path is [_, ':'])
return path + '\\'; return path + '\\';
return path; return path;