From cf800cbd36860b8c16776f28a383cf279a91288a Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Mon, 6 Oct 2025 14:19:24 +0800 Subject: [PATCH] =?UTF-8?q?improve:=E8=87=AA=E5=8A=A8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ink Canvas/MainWindow.xaml.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Ink Canvas/MainWindow.xaml.cs b/Ink Canvas/MainWindow.xaml.cs index d93d3d7e..73a09138 100644 --- a/Ink Canvas/MainWindow.xaml.cs +++ b/Ink Canvas/MainWindow.xaml.cs @@ -832,6 +832,8 @@ namespace Ink_Canvas // 声明下载状态变量,用于整个方法 bool isDownloadSuccessful = false; + bool hasValidLineGroup = lineGroup != null; + if (AvailableLatestVersion != null) { // 检测到新版本,停止重试定时器 @@ -1001,6 +1003,14 @@ namespace Ink_Canvas break; } } + else if (hasValidLineGroup) + { + LogHelper.WriteLogToFile("AutoUpdate | Current version is already the latest, no retry needed"); + + // 停止重试定时器 + timerCheckAutoUpdateRetry.Stop(); + updateCheckRetryCount = 0; + } else { // 检查更新失败,启动重试定时器