Correct update channels.

This commit is contained in:
Patrick Fic
2026-03-02 12:26:38 -08:00
parent c5ae7c9cdb
commit 715099e2c0

View File

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