mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c10aa4dda7 | ||
|
|
69e2e52b96 |
No files matched your search
@@ -570,8 +570,6 @@ a:focus-visible {
|
|||||||
|
|
||||||
.app-update {
|
.app-update {
|
||||||
margin-left: var(--tab-action-gap);
|
margin-left: var(--tab-action-gap);
|
||||||
margin-right: -6px;
|
|
||||||
color: var(--accent-strong);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-update[hidden] {
|
.app-update[hidden] {
|
||||||
@@ -4348,10 +4346,6 @@ audio.page-media {
|
|||||||
--bar-pad: 5px 8px;
|
--bar-pad: 5px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.app-update {
|
|
||||||
margin-right: -8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.workspace {
|
.workspace {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user