From 231c960ca88cd0eb5ae5a8af60b3a7fe78308e04 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 18 Sep 2024 14:30:45 -0700 Subject: [PATCH] missed a change --- emain/updater.ts | 2 ++ frontend/app/tab/updatestatus.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/emain/updater.ts b/emain/updater.ts index 83ebc2336..f04f2753f 100644 --- a/emain/updater.ts +++ b/emain/updater.ts @@ -50,10 +50,12 @@ export class Updater { autoUpdater.on("update-available", () => { console.log("update-available; downloading..."); + this.status = "downloading"; }); autoUpdater.on("update-not-available", () => { console.log("update-not-available"); + this.status = "up-to-date"; }); autoUpdater.on("update-downloaded", (event) => { diff --git a/frontend/app/tab/updatestatus.tsx b/frontend/app/tab/updatestatus.tsx index 7ca33a958..75f6ad68c 100644 --- a/frontend/app/tab/updatestatus.tsx +++ b/frontend/app/tab/updatestatus.tsx @@ -7,7 +7,7 @@ import "./updatestatus.less"; const UpdateStatusBannerComponent = ({ buttonRef }: { buttonRef: React.RefObject }) => { const appUpdateStatus = useAtomValue(atoms.updaterStatusAtom); function onClick() { - if (appUpdateStatus === "ready") getApi().installAppUpdate(); + getApi().installAppUpdate(); } let buttonText: string;