aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2024-08-05 20:50:55 +0200
committerJan200101 <sentrycraft123@gmail.com>2024-08-10 10:18:33 +0200
commit7f90d57abc197930ef4e4bfd65b83fdc5934d1d5 (patch)
tree30de2bc60a695b3d2d00fce4b68e07a71996638c /src/modules
parent94714507d6132518a498ee373cfae77153aa3221 (diff)
downloadViper-7f90d57abc197930ef4e4bfd65b83fdc5934d1d5.tar.gz
Viper-7f90d57abc197930ef4e4bfd65b83fdc5934d1d5.zip
fix: prevent multiple missing-perms routines from starting
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/gamepath.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/gamepath.js b/src/modules/gamepath.js
index db669c1..65676a4 100644
--- a/src/modules/gamepath.js
+++ b/src/modules/gamepath.js
@@ -45,11 +45,13 @@ ipcMain.on("wrong-path", () => {
})
ipcMain.on("found-missing-perms", async (e, selected_gamepath) => {
+ gamepath.setting = true;
await win().alert(lang("gui.gamepath.found_missing_perms") + selected_gamepath);
ipcMain.emit("setpath", null, false, true);
})
ipcMain.on("missing-perms", async (e, selected_gamepath) => {
+ gamepath.setting = true;
await win().alert(lang("gui.gamepath.missing_perms") + selected_gamepath);
ipcMain.emit("setpath");
})