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;
};
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");
},