diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index 88161e4a..efa9ab00 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -1944,6 +1944,19 @@ + + + + + diff --git a/Ink Canvas/MainWindow_cs/MW_PPT.cs b/Ink Canvas/MainWindow_cs/MW_PPT.cs index 21a95d21..8dcda193 100644 --- a/Ink Canvas/MainWindow_cs/MW_PPT.cs +++ b/Ink Canvas/MainWindow_cs/MW_PPT.cs @@ -1537,7 +1537,9 @@ namespace Ink_Canvas strokesToSave = inkCanvas.Strokes.Clone(); } - if (_pptManager?.TryNavigateNext(skipAnimations: true) == true) + var skipAnimations = Settings.PowerPointSettings.SkipAnimationsWhenGoNext; + + if (_pptManager?.TryNavigateNext(skipAnimations: skipAnimations) == true) { var currentSlideAfterNavigate = _pptManager?.GetCurrentSlideNumber() ?? 0; diff --git a/Ink Canvas/MainWindow_cs/MW_Settings.cs b/Ink Canvas/MainWindow_cs/MW_Settings.cs index 833a06c9..7e9a8850 100644 --- a/Ink Canvas/MainWindow_cs/MW_Settings.cs +++ b/Ink Canvas/MainWindow_cs/MW_Settings.cs @@ -578,6 +578,13 @@ namespace Ink_Canvas SaveSettingsToFile(); } + private void ToggleSwitchSkipAnimationsWhenGoNext_OnToggled(object sender, RoutedEventArgs e) + { + if (!isLoaded) return; + Settings.PowerPointSettings.SkipAnimationsWhenGoNext = ToggleSwitchSkipAnimationsWhenGoNext.IsOn; + SaveSettingsToFile(); + } + private void CheckboxEnableLBPPTButton_IsCheckChanged(object sender, RoutedEventArgs e) { if (!isLoaded) return; diff --git a/Ink Canvas/Resources/Settings.cs b/Ink Canvas/Resources/Settings.cs index 15486708..44f0618f 100644 --- a/Ink Canvas/Resources/Settings.cs +++ b/Ink Canvas/Resources/Settings.cs @@ -319,6 +319,8 @@ namespace Ink_Canvas public bool EnablePowerPointEnhancement { get; set; } = false; [JsonProperty("showGestureButtonInSlideShow")] public bool ShowGestureButtonInSlideShow { get; set; } = false; + [JsonProperty("skipAnimationsWhenGoNext")] + public bool SkipAnimationsWhenGoNext { get; set; } = false; } public class Automation