diff --git a/main.js b/main.js index da7846f..4ae8c8b 100644 --- a/main.js +++ b/main.js @@ -2859,7 +2859,15 @@ ipcMain.handle("open-update-download", (_e, url) => { } catch (e) { console.warn("update download failed:", e?.message); return false; } }); ipcMain.handle("dismiss-update", () => { updateDismissedThisSession = true; emitUpdateAvailable(); return true; }); -ipcMain.handle("recheck-update", async () => { await checkForUpdate(); return updateAvailable; }); +ipcMain.handle("recheck-update", async () => { + // Manual "Check for updates" also un-dismisses any chip the user closed + // in this session — they're actively asking to see the status, so honour + // that. Report current app version too so the UI can render "you're on + // vN.M.O" when no newer build is out. + updateDismissedThisSession = false; + await checkForUpdate(); + return { updateAvailable, currentVersion: app.getVersion() }; +}); // One-click "Install & restart". Requires the silent pre-fetch to have // finished (updateDownloadState === "ready"). Launches the setup with /S // (skips the wizard; our nsis/installer.nsh's Ariadne prompt is bypassed diff --git a/settings-preload.js b/settings-preload.js index 7893750..749de7a 100644 --- a/settings-preload.js +++ b/settings-preload.js @@ -36,6 +36,9 @@ contextBridge.exposeInMainWorld("cfg", { ariadneInstall: () => ipcRenderer.invoke("ariadne-install"), ariadneUpdate: () => ipcRenderer.invoke("ariadne-update"), ariadneUninstall: () => ipcRenderer.invoke("ariadne-uninstall"), + // Manual "Check for updates" — un-dismisses any existing chip and re- + // fetches the release manifest. Returns { updateAvailable, currentVersion }. + recheckUpdate: () => ipcRenderer.invoke("recheck-update"), // Add-ons management (Settings > Add-ons tab). listAddons: () => ipcRenderer.invoke("addons-list"), setAddonEnabled: (id, enabled) => ipcRenderer.invoke("addons-set-enabled", id, !!enabled), diff --git a/settings.html b/settings.html index 11c8884..c31bb40 100644 --- a/settings.html +++ b/settings.html @@ -159,6 +159,16 @@
Choose a theme for the browser. System follows your operating system's light/dark setting.