aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-09-13 17:07:49 +0200
committer0neGal <mail@0negal.com>2023-09-13 17:07:49 +0200
commit14279b484ee8acbe440e09be25c36f8527592e75 (patch)
tree541cef6f6452892d3ce619e801cbd0f93e34a0bb
parent809aacaa9a0449de654264983adceca268790586 (diff)
downloadViper-14279b484ee8acbe440e09be25c36f8527592e75.tar.gz
Viper-14279b484ee8acbe440e09be25c36f8527592e75.zip
fixed gamepath only updating for the renderer
This would mean if the gamepath cant be found automatically you'll be asked to set your gamepath every time Viper starts, instead of it remembering it, and if it can find it automatically, then you'd never have known this was a problem (hence why this was even a problem)
-rw-r--r--src/app/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 4eae3ec..8775004 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -223,6 +223,7 @@ function isModInstalled(modname) {
ipcRenderer.on("newpath", (event, newpath) => {
settings.gamepath = newpath;
ipcRenderer.send("gui-getmods");
+ ipcRenderer.send("save-settings", settings);
})
// Continuation of log()