fix:issue #339
This commit is contained in:
@@ -709,15 +709,13 @@ namespace Ink_Canvas
|
||||
BlackBoardWaterMark.Visibility = Visibility.Collapsed;
|
||||
}
|
||||
|
||||
try
|
||||
_ = UpdateChickenSoupTextAsync().ContinueWith(t =>
|
||||
{
|
||||
_ = UpdateChickenSoupTextAsync();
|
||||
}
|
||||
catch (Exception ex)
|
||||
if (t.IsFaulted)
|
||||
{
|
||||
try
|
||||
{
|
||||
LogHelper.WriteLogToFile($"进入白板模式时更新名言失败: {ex.Message}", LogHelper.LogType.Warning);
|
||||
LogHelper.WriteLogToFile($"进入白板模式时更新名言失败: {t.Exception?.GetBaseException().Message}", LogHelper.LogType.Warning);
|
||||
}
|
||||
catch
|
||||
{
|
||||
@@ -752,6 +750,7 @@ namespace Ink_Canvas
|
||||
BlackBoardWaterMark.Text = "一言功能不可用";
|
||||
}
|
||||
}
|
||||
}, TaskScheduler.FromCurrentSynchronizationContext());
|
||||
|
||||
if (Settings.Canvas.UsingWhiteboard)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user