From 7f90d57abc197930ef4e4bfd65b83fdc5934d1d5 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Mon, 5 Aug 2024 20:50:55 +0200 Subject: fix: prevent multiple missing-perms routines from starting --- src/modules/gamepath.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules') 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"); }) -- cgit v1.2.3