优化代码

This commit is contained in:
2026-04-05 14:18:33 +08:00
parent 7a30c93ff5
commit 4835e3db50
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -1,4 +1,3 @@
using Ink_Canvas;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
@@ -3,7 +3,6 @@ using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Ink;
@@ -1502,7 +1502,7 @@ namespace Ink_Canvas
Settings defaultSettings = new Settings();
// 将默认配置和用户配置都序列化为JObject
JObject defaultConfigObj = JObject.FromObject(defaultSettings); EnsureDefaultConfigSchemaIncludesIgnoredNullKeys(defaultConfigObj);
JObject defaultConfigObj = JObject.FromObject(defaultSettings); EnsureDefaultConfigSchemaIncludesIgnoredNullKeys(defaultConfigObj);
JObject userConfigObj = JObject.Parse(userConfigJson);
// 记录是否有清理操作