improve:自动更新

This commit is contained in:
2026-05-02 09:54:51 +08:00
parent 2d9901791c
commit be34eda535
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1814,6 +1814,7 @@ namespace Ink_Canvas
// 清除之前的更新状态,确保使用新通道重新检查
AvailableLatestVersion = null;
AvailableLatestLineGroup = null;
AvailableLatestReleaseNotes = null;
// 使用当前选择的更新通道检查更新
var (remoteVersion, lineGroup, apiReleaseNotes) = await AutoUpdateHelper.CheckForUpdates(Settings.Startup.UpdateChannel);
+2
View File
@@ -1291,11 +1291,13 @@ namespace Ink_Canvas
// 清除之前的更新状态
AvailableLatestVersion = null;
AvailableLatestLineGroup = null;
AvailableLatestReleaseNotes = null;
// 使用当前选择的更新通道检查更新
var (remoteVersion, lineGroup, apiReleaseNotes) = await AutoUpdateHelper.CheckForUpdates(Settings.Startup.UpdateChannel);
AvailableLatestVersion = remoteVersion;
AvailableLatestLineGroup = lineGroup;
AvailableLatestReleaseNotes = apiReleaseNotes;
if (AvailableLatestVersion != null)
{