Skip to content

Commit

Permalink
修复当使用橡皮时隐藏再显示画板导致显示浅色画笔的问题,恢复对关闭确认的修改
Browse files Browse the repository at this point in the history
  • Loading branch information
STBBRD committed Dec 2, 2023
1 parent 7668ad3 commit f0c44fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Ink Canvas/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs
if (!CloseIsFromButton)
{
e.Cancel = true;
if (MessageBox.Show("是否继续关闭 Ink Canvas 画板,这将丢失当前未保存的工作。", "Ink Canvas 画板", MessageBoxButton.OKCancel) == MessageBoxResult.OK)
if (MessageBox.Show("是否继续关闭 Ink Canvas 画板,这将丢失当前未保存的工作。", "Ink Canvas 画板", MessageBoxButton.OKCancel,MessageBoxImage.Warning) == MessageBoxResult.OK)
{
if (MessageBox.Show("真的狠心关闭 Ink Canvas 画板吗?", "Ink Canvas 画板", MessageBoxButton.OKCancel, MessageBoxImage.Error) == MessageBoxResult.OK)
{
Expand Down Expand Up @@ -6987,8 +6987,6 @@ private void SymbolIconRedo_MouseUp(object sender, MouseButtonEventArgs e)

private async void SymbolIconCursor_Click(object sender, RoutedEventArgs e)
{
SetDarkColors();

if (currentMode != 0)
{
ImageBlackboard_MouseUp(null, null);
Expand All @@ -7006,6 +7004,8 @@ private async void SymbolIconCursor_Click(object sender, RoutedEventArgs e)
}
}
}

SetDarkColors();
}

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

0 comments on commit f0c44fe

Please sign in to comment.