diff options
author | 0neGal <mail@0negal.com> | 2022-01-26 00:25:06 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-26 00:25:06 +0100 |
commit | 67f31bf1c9a263920153db378877271aca8148d2 (patch) | |
tree | b41587176950fcd5f0ff1a661e7f255fd531d54e /src/app/main.js | |
parent | dd1a4d50f590b127f0fd3404b063bc42cf29112b (diff) | |
parent | 66204f6f58dc90e1e9ee40c7ea691927d0c50b8d (diff) | |
download | Viper-67f31bf1c9a263920153db378877271aca8148d2.tar.gz Viper-67f31bf1c9a263920153db378877271aca8148d2.zip |
Merge branch 'main' of 0neGal/viper into lang-es
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/main.js b/src/app/main.js index 5f0cc9a..19f6c9e 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -26,13 +26,11 @@ if (fs.existsSync("viper.json")) { settings.zip = path.join(settings.gamepath + "/northstar.zip"); if (settings.gamepath.length === 0) { - alert(lang("general.missingpath")); setpath(false); } else { setpath(true); } } else { - alert(lang("general.missingpath")); setpath(); } @@ -156,6 +154,7 @@ function installmod() { // Frontend part of settings a new game path ipcRenderer.on("newpath", (event, newpath) => { settings.gamepath = newpath; + ipcRenderer.send("guigetmods"); }) // Continuation of log() @@ -164,6 +163,8 @@ ipcRenderer.on("alert", (event, msg) => {alert(msg)}) // Updates the installed mods ipcRenderer.on("mods", (event, mods) => { + if (! mods) {return} + modcount.innerHTML = `${lang("gui.mods.count")} ${mods.all.length}`; modsdiv.innerHTML = ""; |