Compare commits

...
2 Commits
Author SHA1 Message Date
xiaoqidun c10aa4dda7 fix(更新图标): 修复首次更新按钮失效
build.yaml / build (push) Successful in 47s
2026-10-23 22:39:41 +08:00
xiaoqidun 69e2e52b96 feat(更新图标): 统一更新图标样式 2026-10-23 22:32:34 +08:00
2 changed files with 5 additions and 7 deletions

No files matched your search

-6
View File
@@ -570,8 +570,6 @@ a:focus-visible {
.app-update {
margin-left: var(--tab-action-gap);
margin-right: -6px;
color: var(--accent-strong);
}
.app-update[hidden] {
@@ -4348,10 +4346,6 @@ audio.page-media {
--bar-pad: 5px 8px;
}
.app-update {
margin-right: -8px;
}
.workspace {
grid-template-columns: 1fr;
}
+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" });
if (nativeHost) {
el.refreshAppButton.hidden = !latest;
const hidden = !latest;
if (el.refreshAppButton.hidden !== hidden) {
el.refreshAppButton.hidden = hidden;
updateTitleBarRegions();
}
} else if (latest) {
el.refreshAppButton.hidden = latest === checksum;
}