Skip to content

Commit

Permalink
先回到画笔再清屏
Browse files Browse the repository at this point in the history
  • Loading branch information
clover-yan authored Nov 17, 2023
1 parent af4e55d commit b820096
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Ink Canvas/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,15 @@ private void BtnClear_Click(object sender, RoutedEventArgs e)
forceEraser = false;
BorderClearInDelete.Visibility = Visibility.Collapsed;

if (currentMode == 0) {
BorderPenColorRed_MouseUp(BorderPenColorRed, null);
} else {
if (Settings.Canvas.UsingWhiteboard) {
BorderPenColorBlack_MouseUp(BorderPenColorBlack, null);
} else {
BorderPenColorWhite_MouseUp(BorderPenColorWhite, null);
}
}
if (inkCanvas.Strokes.Count != 0)
{
int whiteboardIndex = CurrentWhiteboardIndex;
Expand Down

0 comments on commit b820096

Please sign in to comment.