mirror of
https://github.com/leiurayer/downkyi.git
synced 2025-04-15 14:02:19 +08:00
commit
a8c8626c3e
@ -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…
Reference in New Issue
Block a user