From 99737d8461108b20b902faa0d6bcfb4b43d44f29 Mon Sep 17 00:00:00 2001 From: Remy Raes Date: Mon, 10 Jan 2022 16:45:14 +0100 Subject: [fix] updating correct buttons --- src/app/index.html | 2 +- src/app/main.css | 2 +- src/app/main.js | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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 @@
- +
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"); -- cgit v1.2.3