From ce3204a4dbbf7579fdc3ab066f2cba596562896a Mon Sep 17 00:00:00 2001 From: 0neGal Date: Mon, 30 Jan 2023 23:36:06 +0100 Subject: disable modslist buttons properly --- src/app/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/main.js b/src/app/main.js index 5ac07de..a9329fa 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -64,7 +64,7 @@ if (fs.existsSync("viper.json")) { // Show a toast message if no Internet connection has been detected. -if (!navigator.onLine) { +if (! navigator.onLine) { ipcRenderer.send("no-internet"); } @@ -107,6 +107,7 @@ function setButtons(state) { } } + disablearray(document.querySelectorAll("#modsdiv .el button")); disablearray(document.querySelectorAll(".playBtnContainer .playBtn")); disablearray(document.querySelectorAll("#nsMods .buttons.modbtns button")); disablearray(document.querySelectorAll("#browser #browserEntries .text button")); -- cgit v1.2.3