pull/908/head
yaobiao 7 months ago
parent 8bd51907d1
commit ca14b75038

@ -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