From 7aa5df0301729acba02d4a2fdf718c47841ef048 Mon Sep 17 00:00:00 2001 From: yaobiao131 <28655758+yaobiao131@users.noreply.github.com> Date: Tue, 3 Jun 2025 11:17:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E5=99=A8=E6=A0=B9=E7=9B=AE=E5=BD=95=E9=97=AA?= =?UTF-8?q?=E9=80=80=20#305?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DownKyi/Utils/DialogUtils.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DownKyi/Utils/DialogUtils.cs b/DownKyi/Utils/DialogUtils.cs index 7a62c31..d667909 100644 --- a/DownKyi/Utils/DialogUtils.cs +++ b/DownKyi/Utils/DialogUtils.cs @@ -25,7 +25,7 @@ public static class DialogUtils SuggestedStartLocation = await provider.TryGetFolderFromPathAsync(new Uri(DefaultDirectory)), AllowMultiple = false }); - return folders.Count > 0 ? folders[0].Path.LocalPath : null; + return folders.Count > 0 ? folders[0].TryGetLocalPath() : null; } /// @@ -45,7 +45,7 @@ public static class DialogUtils }); // 选择文件 - return files.Count > 0 ? files[0].Path.LocalPath : null; + return files.Count > 0 ? files[0].TryGetLocalPath() : null; } /// @@ -67,6 +67,6 @@ public static class DialogUtils ); // 选择文件 - return files.Select(file => file.Path.LocalPath).ToArray(); + return files.Select(file => file.TryGetLocalPath()).ToArray(); } } \ No newline at end of file