improve:自动更新

This commit is contained in:
2025-10-06 14:19:24 +08:00
parent 3c06ef0b1a
commit cf800cbd36
+10
View File
@@ -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
{
// 检查更新失败,启动重试定时器