aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-26 00:20:25 +0100
committer0neGal <mail@0negal.com>2022-01-26 00:20:25 +0100
commit6a08872d134f3afa3f81b92fabe51bdbd91f375d (patch)
treeafb0172e5d4a6c4b9e4644513e012fde9efe65f5 /src/app
parent61f9bc80b33ff4a3d9397640db7ca82f7bb79861 (diff)
downloadViper-6a08872d134f3afa3f81b92fabe51bdbd91f375d.tar.gz
Viper-6a08872d134f3afa3f81b92fabe51bdbd91f375d.zip
fixed mods not updating after changing path
This also fixes mods not showing up after first install of NS
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index a3a1d04..19f6c9e 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -154,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()
@@ -162,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 = "";