fix:退出白板后收纳
This commit is contained in:
@@ -3003,10 +3003,18 @@ namespace Ink_Canvas
|
|||||||
// 新增:在屏幕模式下恢复基础浮动栏的显示
|
// 新增:在屏幕模式下恢复基础浮动栏的显示
|
||||||
ViewboxFloatingBar.Visibility = Visibility.Visible;
|
ViewboxFloatingBar.Visibility = Visibility.Visible;
|
||||||
|
|
||||||
// 新增:退出白板时自动收纳功能
|
// 新增:退出白板时自动收纳功能 - 等待浮动栏完全展开后再收纳
|
||||||
if (Settings.Automation.IsAutoFoldWhenExitWhiteboard && !isFloatingBarFolded)
|
if (Settings.Automation.IsAutoFoldWhenExitWhiteboard && !isFloatingBarFolded)
|
||||||
{
|
{
|
||||||
FoldFloatingBar_MouseUp(null, null);
|
// 使用异步延迟,等待浮动栏展开动画完成后再收纳
|
||||||
|
Task.Run(async () =>
|
||||||
|
{
|
||||||
|
await Task.Delay(700);
|
||||||
|
await Dispatcher.InvokeAsync(() =>
|
||||||
|
{
|
||||||
|
FoldFloatingBar_MouseUp(new object(), null);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BtnSwitchTheme.Content.ToString() == "浅色")
|
if (BtnSwitchTheme.Content.ToString() == "浅色")
|
||||||
|
|||||||
Reference in New Issue
Block a user