aboutsummaryrefslogtreecommitdiff
path: root/src-vue/src/views/RepairView.vue
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2023-10-06 15:25:10 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2023-10-06 15:25:10 +0200
commitd6bc5b46a4fc4b75dcba0380063cfc7e8bde212c (patch)
treef56bf43896bdd8a6c2c63bc931b8574445d24420 /src-vue/src/views/RepairView.vue
parent439574d9b7f2ac4a95d97cb56e57cf152bb01ad2 (diff)
parentca6c9c3e9965105624b1cc0a211b6edf986260f8 (diff)
downloadFlightCore-d6bc5b46a4fc4b75dcba0380063cfc7e8bde212c.tar.gz
FlightCore-d6bc5b46a4fc4b75dcba0380063cfc7e8bde212c.zip
Merge branch 'main' into feat/launch-parameters
Diffstat (limited to 'src-vue/src/views/RepairView.vue')
-rw-r--r--src-vue/src/views/RepairView.vue14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-vue/src/views/RepairView.vue b/src-vue/src/views/RepairView.vue
index 65c533d2..ce7e154d 100644
--- a/src-vue/src/views/RepairView.vue
+++ b/src-vue/src/views/RepairView.vue
@@ -17,6 +17,10 @@
{{ $t('settings.repair.window.force_reinstall_ns') }}
</el-button>
+ <el-button type="primary" @click="killNorthstar">
+ {{ $t('settings.repair.window.kill_northstar_process') }}
+ </el-button>
+
<el-button type="primary" @click="disableModsettingsMod">
{{ $t('settings.repair.window.disable_modsettings') }}
</el-button>
@@ -121,6 +125,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);
+ });
+ },
},
watch: {
// Lang value is propagated to repair view after it's mounted, so we need to watch