From 3d96636bb0bbdc271d49999f7a10216690a19157 Mon Sep 17 00:00:00 2001 From: Alystrasz Date: Mon, 10 Jan 2022 20:17:43 +0100 Subject: [fix] not running auto-updates if gamepath is not set --- src/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils.js b/src/utils.js index 72c0ba2..faa0f13 100644 --- a/src/utils.js +++ b/src/utils.js @@ -36,7 +36,8 @@ if (fs.existsSync("viper.json")) { northstar_auto_updates: { - if (!settings.autoupdate || !fs.existsSync("viper.json")) break northstar_auto_updates; + if (!settings.autoupdate || !fs.existsSync("viper.json") || settings.gamepath.length === 0) + break northstar_auto_updates; async function _checkForUpdates() { const localVersion = getNSVersion(); -- cgit v1.2.3