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