fix(更新图标): 修复首次更新按钮失效
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-23 22:39:41 +08:00
1 parent 69e2e52b96
commit c10aa4dda7
1 file changed
+5 -1
+5 -1
View File
@@ -5153,7 +5153,11 @@ function watchApplicationUpdates(checksum) {
} }
const latest = nativeHost ? await nativeHost.call("update.check", {}) : await applicationChecksum("./", { method: "HEAD", cache: "no-store" }); const latest = nativeHost ? await nativeHost.call("update.check", {}) : await applicationChecksum("./", { method: "HEAD", cache: "no-store" });
if (nativeHost) { if (nativeHost) {
el.refreshAppButton.hidden = !latest; const hidden = !latest;
if (el.refreshAppButton.hidden !== hidden) {
el.refreshAppButton.hidden = hidden;
updateTitleBarRegions();
}
} else if (latest) { } else if (latest) {
el.refreshAppButton.hidden = latest === checksum; el.refreshAppButton.hidden = latest === checksum;
} }