diff options
author | 0neGal <mail@0negal.com> | 2022-02-08 21:13:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 21:13:20 +0100 |
commit | 1bd83cf1a72332e142bb63acab47ac3877061875 (patch) | |
tree | 5670e225378ebcb0e73efb0c84265357f74f00cb /src/app | |
parent | d55f84536814238d8ea79acdae47dbdf269953f1 (diff) | |
parent | e2aa874f48dc585f0d67c5655df234bdf356cc53 (diff) | |
download | Viper-1bd83cf1a72332e142bb63acab47ac3877061875.tar.gz Viper-1bd83cf1a72332e142bb63acab47ac3877061875.zip |
Merge branch 'main' into thunderstore
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/icons/viper.png | bin | 137107 -> 59028 bytes | |||
-rw-r--r-- | src/app/main.js | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/app/icons/viper.png b/src/app/icons/viper.png Binary files differindex 281f3dd..69b1cce 100644 --- a/src/app/icons/viper.png +++ b/src/app/icons/viper.png diff --git a/src/app/main.js b/src/app/main.js index 08c70c1..169f86f 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -27,13 +27,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(); } @@ -173,6 +171,7 @@ function installFromURL(url) { // Frontend part of settings a new game path ipcRenderer.on("newpath", (event, newpath) => { settings.gamepath = newpath; + ipcRenderer.send("guigetmods"); }) // Continuation of log() @@ -182,6 +181,8 @@ ipcRenderer.on("alert", (event, msg) => {alert(msg)}) // Updates the installed mods ipcRenderer.on("mods", (event, mods) => { modsobj = mods; + if (! mods) {return} + modcount.innerHTML = `${lang("gui.mods.count")} ${mods.all.length}`; modsdiv.innerHTML = ""; |