improve:PPT模块

This commit is contained in:
2025-07-20 21:14:59 +08:00
parent 476503338f
commit 15198c32ea
7 changed files with 30 additions and 5 deletions
+7
View File
@@ -1315,6 +1315,13 @@ namespace Ink_Canvas {
return;
}
if (!Settings.PowerPointSettings.EnableWppProcessKill)
{
LogHelper.WriteLogToFile("WPP进程查杀功能已被关闭,跳过查杀", LogHelper.LogType.Trace);
StopWppProcessCheckTimer();
return;
}
// 刷新进程状态
wppProcess.Refresh();
wppProcessCheckCount++;
+6
View File
@@ -2159,5 +2159,11 @@ namespace Ink_Canvas {
dialog.Owner = this;
dialog.ShowDialog();
}
private void ToggleSwitchEnableWppProcessKill_Toggled(object sender, RoutedEventArgs e) {
if (!isLoaded) return;
Settings.PowerPointSettings.EnableWppProcessKill = ToggleSwitchEnableWppProcessKill.IsOn;
SaveSettingsToFile();
}
}
}
@@ -375,6 +375,7 @@ namespace Ink_Canvas {
ToggleSwitchAutoSaveScreenShotInPowerPoint.IsOn =
Settings.PowerPointSettings.IsAutoSaveScreenShotInPowerPoint;
ToggleSwitchEnableWppProcessKill.IsOn = Settings.PowerPointSettings.EnableWppProcessKill;
} else {
Settings.PowerPointSettings = new PowerPointSettings();
}
@@ -548,7 +549,6 @@ namespace Ink_Canvas {
// 初始化直线端点吸附相关设置
ToggleSwitchLineEndpointSnapping.IsOn = Settings.Canvas.LineEndpointSnapping;
LineEndpointSnappingThresholdSlider.Value = Settings.Canvas.LineEndpointSnappingThreshold;
} else {
Settings.Canvas = new Canvas();
}