尝试避免 StartArgs 为 null 时出错

可能会出错吧……
This commit is contained in:
clover_yan 2023-05-24 20:26:02 +08:00 committed by GitHub
parent 76cb10b2c9
commit 8ec5103784
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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