Skip to content

Commit

Permalink
fix: prevent multiple missing-perms routines from starting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan200101 committed Aug 10, 2024
1 parent 9471450 commit 7f90d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/gamepath.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
})
Expand Down

0 comments on commit 7f90d57

Please sign in to comment.