From 39e8b2359e9e8552653ab740ac313bfed5e0f0a4 Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Sat, 20 Dec 2025 18:25:07 +0800 Subject: [PATCH] =?UTF-8?q?improve:PPT=E8=87=AA=E5=8A=A8=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=8F=8A=E8=AE=B0=E5=BF=86=E4=B8=8A=E6=AC=A1=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E9=A1=B5=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改进弹窗出现时机 --- Ink Canvas/MainWindow_cs/MW_PPT.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Ink Canvas/MainWindow_cs/MW_PPT.cs b/Ink Canvas/MainWindow_cs/MW_PPT.cs index 62f3ba06..21a95d21 100644 --- a/Ink Canvas/MainWindow_cs/MW_PPT.cs +++ b/Ink Canvas/MainWindow_cs/MW_PPT.cs @@ -524,6 +524,8 @@ namespace Ink_Canvas { try { + bool isInSlideShowWhenOpened = _pptManager?.IsInSlideShow == true; + Application.Current.Dispatcher.InvokeAsync(() => { // 在初始化墨迹管理器之前,先清理画布上的所有墨迹 @@ -546,8 +548,7 @@ namespace Ink_Canvas CheckAndNotifyHiddenSlides(pres); } - // 检查自动播放设置 - if (Settings.PowerPointSettings.IsNotifyAutoPlayPresentation) + if (Settings.PowerPointSettings.IsNotifyAutoPlayPresentation && !isInSlideShowWhenOpened) { CheckAndNotifyAutoPlaySettings(pres); } @@ -1022,7 +1023,10 @@ namespace Ink_Canvas } else if (Settings.PowerPointSettings.IsNotifyPreviousPage) { - ShowPreviousPageNotification(pres); + if (_pptManager?.IsInSlideShow != true) + { + ShowPreviousPageNotification(pres); + } } } catch (Exception ex) @@ -1134,7 +1138,7 @@ namespace Ink_Canvas { try { - if (BtnPPTSlideShowEnd.Visibility == Visibility.Visible) return; + if (_pptManager?.IsInSlideShow == true) return; bool hasSlideTimings = false; if (pres?.Slides != null)