aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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") + ")";
}