aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/index.js b/src/index.js
index 0e8364f..265e13d 100644
--- a/src/index.js
+++ b/src/index.js
@@ -55,6 +55,12 @@ function start() {
ipcMain.on("savesettings", (event, obj) => {utils.saveSettings(obj)})
+ ipcMain.on("can-autoupdate", (event) => {
+ if (! require("electron-updater").autoUpdater.isUpdaterActive()) {
+ win.webContents.send("cant-autoupdate")
+ }
+ })
+
win.webContents.on("dom-ready", () => {
win.webContents.send("mods", utils.mods.list());
});
@@ -62,9 +68,7 @@ function start() {
if (utils.settings.autoupdate) {
utils.updatevp(false)
} else {
- if (utils.settings.nsupdate) {
- utils.update();
- }
+ utils.handleNorthstarUpdating();
}
autoUpdater.on("update-downloaded", () => {