aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/index.html2
-rw-r--r--src/app/main.css2
-rw-r--r--src/app/main.js6
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");