aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-17 23:07:18 +0100
committer0neGal <mail@0negal.com>2022-02-17 23:07:18 +0100
commitee7dab5b056e254bff828a9b9f6d77be2287b935 (patch)
tree8a46abebb7886c206c679dada52e4d1af849cd0f /src/app/main.js
parentc38abb7e16b8e59fb12f78df75f0de30e10946db (diff)
downloadViper-ee7dab5b056e254bff828a9b9f6d77be2287b935.tar.gz
Viper-ee7dab5b056e254bff828a9b9f6d77be2287b935.zip
fixed buttons not re-enabling when closing install
If you closed the file selection window after clicking the "Install Mod" button it would improperly try to install "nothing", and therefore never re-enable the buttons, this is now fixed.
Diffstat (limited to 'src/app/main.js')
-rw-r--r--src/app/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 169f86f..7c71c9d 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -78,6 +78,8 @@ function setButtons(state) {
disablearray(document.querySelectorAll("#browser #browserEntries .text button"))
}
+ipcRenderer.on("setbuttons", (event, state) => {setButtons(state)})
+
// Frontend part of updating Northstar
ipcRenderer.on("ns-update-event", (event, key) => {
document.getElementById("update").innerText = `(${lang(key)})`;