aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDelta <31860825+AA-Delta@users.noreply.github.com>2022-01-25 18:32:40 -0500
committerGitHub <noreply@github.com>2022-01-25 18:32:40 -0500
commit1c17a26bddd819f2fc0f1b2164cae02d441181a3 (patch)
treeb41587176950fcd5f0ff1a661e7f255fd531d54e /src/app
parentdd1a4d50f590b127f0fd3404b063bc42cf29112b (diff)
parent6469020960576b9e4f62c0c308eb5a055a696daa (diff)
downloadViper-1c17a26bddd819f2fc0f1b2164cae02d441181a3.tar.gz
Viper-1c17a26bddd819f2fc0f1b2164cae02d441181a3.zip
Merge pull request #5 from AA-Delta/main
Update for translation
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js5
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 = "";