Skip to content

Commit

Permalink
Disable auto update options for linux; open padlock.io/downloads instead
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKleSoft committed Sep 19, 2017
1 parent f5391cd commit ed41013
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ function updateAvailable(versionInfo) {
}

function checkForUpdates(manual) {
if (os.platform() === "linux") {
if (manual) {
shell.openExternal("https://padlock.io/downloads");
}
return;
}

autoUpdater.autoDownload = settings.get("autoDownloadUpdates");
autoUpdater.allowPrerelease = settings.get("allowPrerelease");

Expand Down Expand Up @@ -180,19 +187,22 @@ function createApplicationMenu() {
type: "checkbox",
label: "Automatically Download and Install Updates",
checked: settings.get("autoDownloadUpdates"),
enabled: os.platform() !== "linux",
click(item) { settings.set("autoDownloadUpdates", item.checked); }
},
{ type: "separator" },
{
type: "radio",
label: "Only Download Stable Releases (recommended)",
checked: !settings.get("allowPrerelease"),
enabled: os.platform() !== "linux",
click(item) { settings.set("allowPrerelease", !item.checked); }
},
{
type: "radio",
label: "Download Stable and Beta Releases",
checked: settings.get("allowPrerelease"),
enabled: os.platform() !== "linux",
click(item) { settings.set("allowPrerelease", item.checked); }
}
]
Expand Down

0 comments on commit ed41013

Please sign in to comment.