aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-07-30 02:32:33 +0200
committerGitHub <noreply@github.com>2023-07-30 02:32:33 +0200
commit61e5294aef101fac02269dd7db6fddc0bcf68ca4 (patch)
tree9bc949a1818179c559e2f87406ffb2073d0de4e7 /src-vue/src
parent14fdc631291a117b8a137b6fbbebfe3dea3a8697 (diff)
downloadFlightCore-61e5294aef101fac02269dd7db6fddc0bcf68ca4.tar.gz
FlightCore-61e5294aef101fac02269dd7db6fddc0bcf68ca4.zip
feat: Add button to forcefully terminate Northstar (#451)
to DevView Kills `NorthstarLauncher.exe` and `Titanfall2.exe` processes.
Diffstat (limited to 'src-vue/src')
-rw-r--r--src-vue/src/views/DeveloperView.vue14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-vue/src/views/DeveloperView.vue b/src-vue/src/views/DeveloperView.vue
index e95154f1..ef878496 100644
--- a/src-vue/src/views/DeveloperView.vue
+++ b/src-vue/src/views/DeveloperView.vue
@@ -74,6 +74,10 @@
Get installed mods
</el-button>
+ <el-button type="primary" @click="killNorthstar">
+ Kill Northstar
+ </el-button>
+
<h3>Testing</h3>
<pull-requests-selector />
@@ -220,6 +224,16 @@ export default defineComponent({
showErrorNotification(error);
});
},
+ async killNorthstar() {
+ await invoke("kill_northstar")
+ .then((message) => {
+ // Just a visual indicator that it worked
+ showNotification('Success');
+ })
+ .catch((error) => {
+ showErrorNotification(error);
+ });
+ },
async installMod() {
let mod_to_install = this.mod_to_install_field_string;
await invoke<string>("install_mod_caller", { gameInstall: this.$store.state.game_install, thunderstoreModString: mod_to_install }).then((message) => {