diff options
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 10 |
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; |