add:PPT侧边栏

This commit is contained in:
2026-02-22 19:58:47 +08:00
parent 15196b39c3
commit 940a8024ac
5 changed files with 29 additions and 2 deletions
+9
View File
@@ -1748,6 +1748,15 @@ namespace Ink_Canvas
UpdatePPTBtnPreview();
}
private void ToggleSwitchShowPPTSidebarByDefault_Toggled(object sender, RoutedEventArgs e)
{
if (!isLoaded) return;
Settings.PowerPointSettings.ShowPPTSidebarByDefault = ToggleSwitchShowPPTSidebarByDefault.IsOn;
SaveSettingsToFile();
if (BtnPPTSlideShowEnd?.Visibility == Visibility.Visible)
UpdatePPTQuickPanelVisibility();
}
private void ToggleSwitchEnablePPTButtonPageClickable_OnToggled(object sender, RoutedEventArgs e)
{
if (!isLoaded) return;
@@ -562,6 +562,10 @@ namespace Ink_Canvas
}
ComboBoxPPTTimeCapsulePosition.SelectedIndex = position;
}
if (ToggleSwitchShowPPTSidebarByDefault != null)
{
ToggleSwitchShowPPTSidebarByDefault.IsOn = Settings.PowerPointSettings.ShowPPTSidebarByDefault;
}
// -- new --
ToggleSwitchShowPPTButton.IsOn = Settings.PowerPointSettings.ShowPPTButton;