missed a change

This commit is contained in:
Evan Simkowitz 2024-09-18 14:30:45 -07:00
parent 97ffa8654c
commit 231c960ca8
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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) => {

View File

@ -7,7 +7,7 @@ import "./updatestatus.less";
const UpdateStatusBannerComponent = ({ buttonRef }: { buttonRef: React.RefObject<HTMLButtonElement> }) => {
const appUpdateStatus = useAtomValue(atoms.updaterStatusAtom);
function onClick() {
if (appUpdateStatus === "ready") getApi().installAppUpdate();
getApi().installAppUpdate();
}
let buttonText: string;