From 1beb36b3a810f04a3a2c789f382149a4793340f4 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 3 Feb 2024 19:35:47 +0100 Subject: added "Force quit game" button to Titanfall tab --- src/app/index.html | 5 ++++- src/app/main.js | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src/app') 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 @@
-
+
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") + ")"; } -- cgit v1.2.3