diff --git a/DownKyi/Languages/Default.xaml b/DownKyi/Languages/Default.xaml
index b481d9f..20846ed 100644
--- a/DownKyi/Languages/Default.xaml
+++ b/DownKyi/Languages/Default.xaml
@@ -345,6 +345,7 @@
选中后下次将不会弹出此窗口
下载
文件夹路径不能为空
+ 该磁盘不存在
选择解析项
diff --git a/DownKyi/Services/Download/AddToDownloadService.cs b/DownKyi/Services/Download/AddToDownloadService.cs
index eddb62a..5edf7a9 100644
--- a/DownKyi/Services/Download/AddToDownloadService.cs
+++ b/DownKyi/Services/Download/AddToDownloadService.cs
@@ -191,6 +191,14 @@ namespace DownKyi.Services.Download
});
}
+ if (!Directory.Exists(Directory.GetDirectoryRoot(directory)))
+ {
+ var alert = new AlertService(dialogService);
+ alert.ShowError(DictionaryResource.GetString("DriveNotFound"));
+
+ directory = string.Empty;
+ }
+
// 下载设置dialog中如果点击取消或者关闭窗口,
// 会返回空字符串,
// 这时直接退出