improve:自动收纳
This commit is contained in:
@@ -63,6 +63,8 @@ namespace Ink_Canvas
|
||||
foldFloatingBarByUser = true;
|
||||
unfoldFloatingBarByUser = false;
|
||||
|
||||
if (isFloatingBarFolded) return;
|
||||
|
||||
if (isFloatingBarChangingHideMode) return;
|
||||
|
||||
await Dispatcher.InvokeAsync(() =>
|
||||
|
||||
@@ -920,6 +920,8 @@ namespace Ink_Canvas
|
||||
|
||||
await Task.Delay(100);
|
||||
await Application.Current.Dispatcher.InvokeAsync(() =>
|
||||
{
|
||||
if (!isFloatingBarFolded)
|
||||
{
|
||||
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
||||
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
||||
@@ -927,11 +929,15 @@ namespace Ink_Canvas
|
||||
Task.Delay(350).ContinueWith(_ =>
|
||||
{
|
||||
Application.Current.Dispatcher.Invoke(() =>
|
||||
{
|
||||
if (!isFloatingBarFolded)
|
||||
{
|
||||
ViewboxFloatingBarMarginAnimation(-60);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -1647,13 +1653,19 @@ namespace Ink_Canvas
|
||||
SetCurrentToolMode(InkCanvasEditingMode.None);
|
||||
|
||||
await Task.Delay(150);
|
||||
if (!isFloatingBarFolded)
|
||||
{
|
||||
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
||||
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
||||
{
|
||||
await Task.Delay(350);
|
||||
if (!isFloatingBarFolded)
|
||||
{
|
||||
ViewboxFloatingBarMarginAnimation(-60);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper.WriteLogToFile($"结束PPT放映操作异常: {ex}", LogHelper.LogType.Error);
|
||||
@@ -1669,14 +1681,20 @@ namespace Ink_Canvas
|
||||
await HandleManualSlideShowEnd();
|
||||
|
||||
await Task.Delay(150);
|
||||
if (!isFloatingBarFolded)
|
||||
{
|
||||
PureViewboxFloatingBarMarginAnimationInDesktopMode();
|
||||
if (Settings.Automation.IsAutoEnterAnnotationModeWhenExitFoldMode)
|
||||
{
|
||||
await Task.Delay(350);
|
||||
if (!isFloatingBarFolded)
|
||||
{
|
||||
ViewboxFloatingBarMarginAnimation(-60);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 手动处理PPT放映结束时的自动收纳
|
||||
|
||||
Reference in New Issue
Block a user