Merge pull request #923 from yaobiao131/bugfix

fix: #907
v1.5.x
leiurayer 7 months ago committed by GitHub
commit a8c8626c3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -191,6 +191,11 @@ namespace DownKyi.Services.Download
});
}
// 下载设置dialog中如果点击取消或者关闭窗口
// 会返回空字符串,
// 这时直接退出
if (string.IsNullOrEmpty(directory)) { return null; }
if (!Directory.Exists(Directory.GetDirectoryRoot(directory)))
{
var alert = new AlertService(dialogService);
@ -199,10 +204,6 @@ namespace DownKyi.Services.Download
directory = string.Empty;
}
// 下载设置dialog中如果点击取消或者关闭窗口
// 会返回空字符串,
// 这时直接退出
if (directory == null || directory == string.Empty) { return null; }
// 文件夹不存在则创建
if (!Directory.Exists(directory))

Loading…
Cancel
Save