improve:开关逻辑

This commit is contained in:
2026-01-10 18:22:58 +08:00
parent ea20f84d91
commit b10215aec9
2 changed files with 34 additions and 3 deletions
+15
View File
@@ -108,6 +108,21 @@ namespace Ink_Canvas
if (!isLoaded) return;
Settings.PowerPointSettings.PowerPointSupport = ToggleSwitchSupportPowerPoint.IsOn;
if (!Settings.PowerPointSettings.PowerPointSupport)
{
if (Settings.PowerPointSettings.IsSupportWPS)
{
Settings.PowerPointSettings.IsSupportWPS = false;
ToggleSwitchSupportWPS.IsOn = false;
if (_pptManager != null)
{
_pptManager.IsSupportWPS = false;
}
}
}
SaveSettingsToFile();
// 使用新的PPT管理器