Skip to content

Commit

Permalink
[BugFix] 修复切换时黑板未正确退出的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Raspberry-Monster authored Jun 2, 2024
1 parent 079e36c commit 031079b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Ink Canvas/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6932,15 +6932,14 @@ private void ImageBlackboard_MouseUp(object sender, MouseButtonEventArgs e)
}
BtnSwitch_Click(BtnSwitch, null);

if (currentMode == 0 && inkCanvas.Strokes.Count == 0 && BtnPPTSlideShowEnd.Visibility != Visibility.Visible)
{
BtnHideInkCanvas_Click(BtnHideInkCanvas, null);
}

BtnExit.Foreground = Brushes.White;
ThemeManager.Current.ApplicationTheme = ApplicationTheme.Dark;
SetColors();
SetColorByIndex();
if (currentMode == 0 && inkCanvas.Strokes.Count == 0 && BtnPPTSlideShowEnd.Visibility != Visibility.Visible)
{
BtnHideInkCanvas_Click(BtnHideInkCanvas, null);
}
}

private void ImageEraser_MouseUp(object sender, MouseButtonEventArgs e)
Expand Down

0 comments on commit 031079b

Please sign in to comment.