From 5193485b5c66170330b920d891e3fe1442cc1f3d Mon Sep 17 00:00:00 2001 From: 0neGal Date: Wed, 23 Feb 2022 18:33:59 +0100 Subject: implement ability to disable NS auto-updates Albeit with some caveats, due to the way electron-updater is setup, if you're not on a version of Viper which supports auto-updates the event which runs the NS Updater code will never be run, and hence it'll never auto-update. This was also an issue before, but I only noticed it now. --- src/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index fa2a35f..0e8364f 100644 --- a/src/index.js +++ b/src/index.js @@ -59,7 +59,13 @@ function start() { win.webContents.send("mods", utils.mods.list()); }); - if (utils.settings.autoupdate) {utils.updatevp(false)} + if (utils.settings.autoupdate) { + utils.updatevp(false) + } else { + if (utils.settings.nsupdate) { + utils.update(); + } + } autoUpdater.on("update-downloaded", () => { win.webContents.send("updateavailable") -- cgit v1.2.3