From 2c4501fa5fd2b58424dfa926a3ac87df9744e86c Mon Sep 17 00:00:00 2001 From: alwaysmesmerizingyou Date: Sat, 26 Sep 2026 11:49:14 -0700 Subject: [PATCH] ui tweaks --- ui/index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ui/index.html b/ui/index.html index ee75d16..094d612 100644 --- a/ui/index.html +++ b/ui/index.html @@ -516,6 +516,9 @@ void main() { const btnYes = document.getElementById("btn-update-yes"); const btnNo = document.getElementById("btn-update-no"); + if (actionsEl) actionsEl.style.display = "none"; + if (progressTrack) progressTrack.style.display = "none"; + let currentStatusText = ""; function setStatus(text, color = "rgba(255, 255, 255, 0.85)") { @@ -567,15 +570,15 @@ void main() { const data = e.payload || e; if (data) { if (progressTrack) progressTrack.style.display = "block"; - const percent = data.percent || 0; - if (progressFill) progressFill.style.width = percent + "%"; - setStatus(`Downloading update (${percent}%)...`); + if (progressFill) progressFill.style.width = "100%"; + if (actionsEl) actionsEl.style.display = "none"; + setStatus("Downloading update..."); } }); eventApi.listen("update-available", (e) => { const data = e.payload || e; - if (data) { + if (data && data.latest) { if (progressTrack) progressTrack.style.display = "none"; setStatus(`Update Available: ${data.latest} (Current: ${data.current})`); if (actionsEl) actionsEl.style.display = "flex";