improve:PPT模块

This commit is contained in:
2026-01-10 22:13:00 +08:00
parent 89ccf700c3
commit 927d85ea68
+19 -2
View File
@@ -922,8 +922,17 @@ namespace Ink_Canvas
await Application.Current.Dispatcher.InvokeAsync(() => await Application.Current.Dispatcher.InvokeAsync(() =>
{ {
PureViewboxFloatingBarMarginAnimationInDesktopMode(); PureViewboxFloatingBarMarginAnimationInDesktopMode();
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
{
Task.Delay(350).ContinueWith(_ =>
{
Application.Current.Dispatcher.Invoke(() =>
{
ViewboxFloatingBarMarginAnimation(-60); ViewboxFloatingBarMarginAnimation(-60);
}); });
});
}
});
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -1638,9 +1647,13 @@ namespace Ink_Canvas
SetCurrentToolMode(InkCanvasEditingMode.None); SetCurrentToolMode(InkCanvasEditingMode.None);
await Task.Delay(150); await Task.Delay(150);
// PPT退出时自动收纳,使用收纳状态的边距动画 PureViewboxFloatingBarMarginAnimationInDesktopMode();
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
{
await Task.Delay(350);
ViewboxFloatingBarMarginAnimation(-60); ViewboxFloatingBarMarginAnimation(-60);
} }
}
catch (Exception ex) catch (Exception ex)
{ {
LogHelper.WriteLogToFile($"结束PPT放映操作异常: {ex}", LogHelper.LogType.Error); LogHelper.WriteLogToFile($"结束PPT放映操作异常: {ex}", LogHelper.LogType.Error);
@@ -1655,11 +1668,15 @@ namespace Ink_Canvas
// 异常情况下也手动处理自动收纳 // 异常情况下也手动处理自动收纳
await HandleManualSlideShowEnd(); await HandleManualSlideShowEnd();
// 异常情况下也要自动收纳,使用收纳状态的边距动画
await Task.Delay(150); await Task.Delay(150);
PureViewboxFloatingBarMarginAnimationInDesktopMode();
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
{
await Task.Delay(350);
ViewboxFloatingBarMarginAnimation(-60); ViewboxFloatingBarMarginAnimation(-60);
} }
} }
}
/// <summary> /// <summary>
/// 手动处理PPT放映结束时的自动收纳 /// 手动处理PPT放映结束时的自动收纳