aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-09-16 00:27:45 +0200
committer0neGal <mail@0negal.com>2023-09-16 00:27:45 +0200
commitba64cef4fd5738e5744814bf67dddbd3865132f1 (patch)
tree830d6c98d5d6ceb4e14597e80247711d05b4f2f5 /src/app
parent2fb192c4cb2d40652f642a54499d3b66d6af884d (diff)
downloadViper-ba64cef4fd5738e5744814bf67dddbd3865132f1.tar.gz
Viper-ba64cef4fd5738e5744814bf67dddbd3865132f1.zip
added button to force kill game
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js
index 4e30cd0..b7058ce 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -312,6 +312,9 @@ ipcRenderer.on("is-running", (event, running) => {
set_playbtns(lang("general.running"));
is_running = running;
+
+ update.setAttribute("onclick", "kill_game()");
+ update.innerHTML = "(" + lang("ns.menu.force_quit") + ")";
return;
}
@@ -320,9 +323,16 @@ ipcRenderer.on("is-running", (event, running) => {
set_playbtns(lang("gui.launch"));
is_running = running;
+
+ update.setAttribute("onclick", "updateNorthstar()");
+ update.innerHTML = "(" + lang("gui.update.check") + ")";
}
})
+function kill_game() {
+ ipcRenderer.send("kill-game");
+}
+
// Updates the installed mods
ipcRenderer.on("mods", (event, mods_obj) => {
modsobj = mods_obj;