diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-08-05 20:50:55 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-08-10 10:18:33 +0200 |
commit | 7f90d57abc197930ef4e4bfd65b83fdc5934d1d5 (patch) | |
tree | 30de2bc60a695b3d2d00fce4b68e07a71996638c /src/modules | |
parent | 94714507d6132518a498ee373cfae77153aa3221 (diff) | |
download | Viper-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.js | 2 |
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"); }) |