aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-02-03 19:35:47 +0100
committer0neGal <mail@0negal.com>2024-02-03 19:35:47 +0100
commit1beb36b3a810f04a3a2c789f382149a4793340f4 (patch)
tree06bdc540e4733e90f55dc5e830c774f748cc14f1 /src/app
parent622f2289db415251073c18356c4566e0fd3c094b (diff)
downloadViper-1beb36b3a810f04a3a2c789f382149a4793340f4.tar.gz
Viper-1beb36b3a810f04a3a2c789f382149a4793340f4.zip
added "Force quit game" button to Titanfall tab
Diffstat (limited to 'src/app')
-rw-r--r--src/app/index.html5
-rw-r--r--src/app/main.js6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 9e0ae51..9f0297d 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -309,7 +309,10 @@
<div class="img"><img src="../assets/vanilla.png"></div>
<div class="playBtnContainer">
<button class="playBtn" onclick="launchVanilla()">%%gui.launch%%</button>
- <div id="tf2Version"></div>
+ <div class="inline">
+ <div id="tf2Version"></div>
+ <a id="tfquit" style="display: none" href="#" onclick="kill_game()">(%%ns.menu.force_quit%%)</a>
+ </div>
</div>
</div>
</div>
diff --git a/src/app/main.js b/src/app/main.js
index dad4b7e..8a25c36 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -442,6 +442,9 @@ ipcRenderer.on("is-running", (event, running) => {
is_running = running;
+ // show force quit button in Titanfall tab
+ tfquit.style.display = "inline-block";
+
update.setAttribute("onclick", "kill_game()");
update.innerHTML = "(" + lang("ns.menu.force_quit") + ")";
return;
@@ -453,6 +456,9 @@ ipcRenderer.on("is-running", (event, running) => {
is_running = running;
+ // hide force quit button in Titanfall tab
+ tfquit.style.display = "none";
+
update.setAttribute("onclick", "updateNorthstar()");
update.innerHTML = "(" + lang("gui.update.check") + ")";
}