diff --git a/src/main/index.ts b/src/main/index.ts index f3a787e..ba66be5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -77,6 +77,9 @@ function createWindow(): void { y: number | undefined; }; + const currentReleaseChannel: string = + (store.get("app.channel") as string) || autoUpdater.channel || "latest"; + // Validate window position is on screen const { validX, validY } = ensureWindowOnScreen(x, y, width, height); @@ -236,21 +239,25 @@ function createWindow(): void { submenu: [ { label: "Alpha", - checked: autoUpdater.channel === "alpha", + type: "radio", + checked: currentReleaseChannel === "alpha", click: (): void => { checkForAppUpdates("alpha"); }, }, { label: "Beta", - checked: autoUpdater.channel === "beta", + type: "radio", + checked: currentReleaseChannel === "beta", + click: (): void => { checkForAppUpdates("beta"); }, }, { label: "Latest", - checked: autoUpdater.channel === "latest", + type: "radio", + checked: currentReleaseChannel === "latest", click: (): void => { checkForAppUpdates("latest"); },