From 13b24aeb7ca83819c448e5246b9be518167cc75f Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Fri, 6 Feb 2026 21:45:48 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettingsViews/AutomationPanel.xaml | 18 +++++++++--------- .../SettingsViews/AutomationPanel.xaml.cs | 16 +++++++++++++++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml b/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml index d5999941..d5955776 100644 --- a/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml +++ b/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml @@ -288,7 +288,7 @@ - + @@ -304,7 +304,7 @@ - + @@ -318,7 +318,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -346,7 +346,7 @@ - + @@ -360,7 +360,7 @@ - + @@ -377,7 +377,7 @@ - + @@ -391,7 +391,7 @@ - + @@ -405,7 +405,7 @@ - + diff --git a/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml.cs b/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml.cs index 775be208..49620b6c 100644 --- a/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml.cs +++ b/Ink Canvas/Windows/SettingsViews/SettingsViews/AutomationPanel.xaml.cs @@ -41,7 +41,7 @@ namespace Ink_Canvas.Windows.SettingsViews var automation = MainWindow.Settings.Automation; - // 设置所有 ToggleSwitch 的状态 + // 自动收纳相关 SetToggleSwitchState("ToggleSwitchAutoFoldInEasiNote", automation.IsAutoFoldInEasiNote); SetToggleSwitchState("ToggleSwitchAutoFoldInEasiCamera", automation.IsAutoFoldInEasiCamera); SetToggleSwitchState("ToggleSwitchAutoFoldInHiteTouchPro", automation.IsAutoFoldInHiteTouchPro); @@ -62,10 +62,24 @@ namespace Ink_Canvas.Windows.SettingsViews SetToggleSwitchState("ToggleSwitchAutoFoldInEasiNoteIgnoreDesktopAnno", automation.IsAutoFoldInEasiNoteIgnoreDesktopAnno); SetToggleSwitchState("ToggleSwitchAutoFoldInOldZyBoard", automation.IsAutoFoldInOldZyBoard); SetToggleSwitchState("ToggleSwitchKeepFoldAfterSoftwareExit", automation.KeepFoldAfterSoftwareExit); + + // 自动查杀相关 + SetToggleSwitchState("ToggleSwitchAutoKillPptService", automation.IsAutoKillPptService); + SetToggleSwitchState("ToggleSwitchAutoKillEasiNote", automation.IsAutoKillEasiNote); + SetToggleSwitchState("ToggleSwitchAutoKillHiteAnnotation", automation.IsAutoKillHiteAnnotation); + SetToggleSwitchState("ToggleSwitchAutoEnterAnnotationAfterKillHite", automation.IsAutoEnterAnnotationAfterKillHite); + SetToggleSwitchState("ToggleSwitchAutoKillVComYouJiao", automation.IsAutoKillVComYouJiao); + SetToggleSwitchState("ToggleSwitchAutoKillSeewoLauncher2DesktopAnnotation", automation.IsAutoKillSeewoLauncher2DesktopAnnotation); + SetToggleSwitchState("ToggleSwitchAutoKillInkCanvas", automation.IsAutoKillInkCanvas); + SetToggleSwitchState("ToggleSwitchAutoKillICA", automation.IsAutoKillICA); + SetToggleSwitchState("ToggleSwitchAutoKillIDT", automation.IsAutoKillIDT); + + _isLoaded = true; } catch (Exception ex) { System.Diagnostics.Debug.WriteLine($"AutomationPanel 加载设置时出错: {ex.Message}"); + _isLoaded = true; } }