improve:墨迹保存
This commit is contained in:
@@ -102,8 +102,7 @@ namespace Ink_Canvas {
|
||||
}
|
||||
catch (Exception ex) when
|
||||
(ex is IOException ||
|
||||
ex is UnauthorizedAccessException ||
|
||||
ex is DirectoryNotFoundException) // 明确捕获与目录创建相关的异常
|
||||
ex is UnauthorizedAccessException) // 明确捕获与目录创建相关的异常
|
||||
{
|
||||
// 如果创建失败则使用文档目录
|
||||
basePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
||||
|
||||
Reference in New Issue
Block a user