Update MainWindow.xaml.cs

This commit is contained in:
XY Wang 2023-05-29 11:14:07 +08:00 committed by GitHub
parent 875b19ef3b
commit 0b471cd39a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6696,12 +6696,8 @@ namespace Ink_Canvas
if (currentMode == 0)
{
//进入黑板
try {
if (!App.StartArgs.Contains("-b"))
Topmost = false;
} catch {
Topmost = false;
}
Topmost = false;
if (BtnPPTSlideShowEnd.Visibility == Visibility.Collapsed)
{
pointDesktop = new Point(ViewboxFloatingBar.Margin.Left, ViewboxFloatingBar.Margin.Top);
@ -6732,12 +6728,7 @@ namespace Ink_Canvas
else
{
//关闭黑板
try {
if (!App.StartArgs.Contains("-b"))
Topmost = true;
} catch {
Topmost = true;
}
Topmost = true;
if (isInMultiTouchMode) BorderMultiTouchMode_MouseUp(null, null);