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 | |
parent | 7ffe08c2bf76edd66f7d3099fb212831a0567f31 (diff) | |
download | Viper-99737d8461108b20b902faa0d6bcfb4b43d44f29.tar.gz Viper-99737d8461108b20b902faa0d6bcfb4b43d44f29.zip |
[fix] updating correct buttons
-rw-r--r-- | src/app/index.html | 2 | ||||
-rw-r--r-- | src/app/main.css | 2 | ||||
-rw-r--r-- | src/app/main.js | 6 |
3 files changed, 6 insertions, 4 deletions
diff --git a/src/app/index.html b/src/app/index.html index 88d5a17..d9db79b 100644 --- a/src/app/index.html +++ b/src/app/index.html @@ -15,7 +15,7 @@ </div> <div class="buttons"> <button id="exit" onclick="exit()">%%gui.exit%%</button> - <button id="update" onclick="update()">%%gui.update%%</button> + <button id="updateBtn" onclick="update()">%%gui.update%%</button> <button id="setpath" onclick="setpath()">%%gui.setpath%%</button> </div> </div> diff --git a/src/app/main.css b/src/app/main.css index 56f17b2..69b10ad 100644 --- a/src/app/main.css +++ b/src/app/main.css @@ -110,7 +110,7 @@ button:active { #setpath {background: #5E81AC} #vanilla, #exit {background: #656E7F} -#update, #installmod {background: var(--blue)} +#updateBtn, #installmod {background: var(--blue)} #togglemod, #toggleall {background: var(--yellow)} #northstar, #removeall, #removemod {background: var(--red)} button:disabled {background: var(--disabled) !important; opacity: 0.5} 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"); |