aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 9218ec7..70d1b0c 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -83,11 +83,17 @@ function setButtons(state) {
}
}
+ disablearray(document.querySelectorAll(".playBtnContainer .playBtn"))
disablearray(document.querySelectorAll("#nsMods .buttons.modbtns button"))
disablearray(document.querySelectorAll("#browser #browserEntries .text button"))
}
ipcRenderer.on("setbuttons", (event, state) => {setButtons(state)})
+ipcRenderer.on("gamepathlost", (event, state) => {
+ page(0);
+ setButtons(false);
+ alert(lang("gui.gamepath.lost"));
+})
// Frontend part of updating Northstar
ipcRenderer.on("ns-update-event", (event, key) => {