Correct update channels.
This commit is contained in:
@@ -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");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user