prevented unnecessary automatic updates

This commit is contained in:
2026-09-05 17:03:18 -07:00
parent bef6fd2326
commit 8ce4edc251
2 changed files with 5 additions and 34 deletions

View File

@@ -569,15 +569,14 @@ void main() {
if (progressTrack) progressTrack.style.display = "block";
const percent = data.percent || 0;
if (progressFill) progressFill.style.width = percent + "%";
if (!currentStatusText.startsWith("Downloading update...")) {
setStatus("Downloading update...");
}
setStatus(`Downloading update (${percent}%)...`);
}
});
eventApi.listen("update-available", (e) => {
const data = e.payload || e;
if (data) {
if (progressTrack) progressTrack.style.display = "none";
setStatus(`Update Available: ${data.latest} (Current: ${data.current})`);
if (actionsEl) actionsEl.style.display = "flex";
}
@@ -586,6 +585,8 @@ void main() {
eventApi.listen("ready", (e) => {
const data = e.payload || e;
if (data && data.url) {
if (progressTrack) progressTrack.style.display = "none";
if (actionsEl) actionsEl.style.display = "none";
setStatus("Launching...");
}
});