diff options
author | Remy Raes <raes.remy@gmail.com> | 2022-01-10 16:45:14 +0100 |
---|---|---|
committer | Remy Raes <raes.remy@gmail.com> | 2022-01-10 16:45:14 +0100 |
commit | 99737d8461108b20b902faa0d6bcfb4b43d44f29 (patch) | |
tree | 25d6f3be291ed60ee7a69be573e983b473297ec8 /src/app/main.js | |
parent | 7ffe08c2bf76edd66f7d3099fb212831a0567f31 (diff) | |
download | Viper-99737d8461108b20b902faa0d6bcfb4b43d44f29.tar.gz Viper-99737d8461108b20b902faa0d6bcfb4b43d44f29.zip |
[fix] updating correct buttons
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app/main.js b/src/app/main.js index 3879ac5..9c6619d 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -120,7 +120,8 @@ function installmod() { ipcRenderer.on("ns-updated", () => { setButtons(true); - northstar.innerText = lang('gui.launchnorthstar'); + updateBtn.innerText = lang('gui.update'); + northstar.removeAttribute('disabled'); }) ipcRenderer.on("ns-updating", () => {setButtons(false)}) @@ -163,7 +164,8 @@ ipcRenderer.on("version", (event, versions) => { } // Since Northstar is not installed, we cannot launch it - northstar.innerText = lang('gui.installnorthstar'); + updateBtn.innerText = lang('gui.installnorthstar'); + northstar.setAttribute('disabled', ''); shouldInstallNorthstar = true; } }); ipcRenderer.send("getversion"); |