优化代码

This commit is contained in:
2026-03-28 20:29:12 +08:00
parent bc3e37e541
commit a6b31e82c0
8 changed files with 8 additions and 14 deletions
@@ -346,7 +346,7 @@ namespace Ink_Canvas
protected override void OnClosing(CancelEventArgs e)
{
downloadCts?.Cancel();
try
{
// 获取主窗口实例
@@ -361,7 +361,7 @@ namespace Ink_Canvas
{
LogHelper.WriteLogToFile($"显示主窗口时出错: {ex.Message}", LogHelper.LogType.Error);
}
base.OnClosing(e);
}