diff options
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js index 8db6561..6f2493a 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -129,6 +129,14 @@ ipcRenderer.on("mods", (event, mods) => { ipcRenderer.on("version", (event, versions) => { vpversion.innerText = lang("gui.versions.viper") + ": " + versions.vp; nsversion.innerText = lang("gui.versions.northstar") + ": " + versions.ns; + + if (versions.ns == "unknown") { + let buttons = document.querySelectorAll(".modbtns button"); + + for (let i = 0; i < buttons.length; i++) { + buttons[i].disabled = true; + } + } }); ipcRenderer.send("getversion"); ipcRenderer.on("updateavailable", () => { |