diff --git a/src-vue/src/App.vue b/src-vue/src/App.vue index 9db6c4883..a73c8bac1 100644 --- a/src-vue/src/App.vue +++ b/src-vue/src/App.vue @@ -57,7 +57,7 @@ export default {
-
- +

{{ $t('settings.repair.title') }}

- - {{ $t('settings.repair.open_window') }} + + {{ $t('settings.repair.open_view') }}
@@ -152,6 +152,7 @@ const persistentStore = new Store('flight-core-settings.json'); import { open } from '@tauri-apps/api/shell'; import { i18n } from '../main'; import { ElMessageBox } from 'element-plus' +import { Tabs } from "../utils/Tabs"; export default defineComponent({ name: "SettingsView", @@ -241,12 +242,9 @@ export default defineComponent({ async updateGamePath() { this.$store.commit('updateGamePath'); }, - async openRepairWindow() { - await invoke("open_repair_window") - .then((message) => { }) - .catch((error) => { - showErrorNotification(error); - }); + async openRepairView() { + this.$store.state.repair_view_visible = true; + this.$store.commit('updateCurrentTab', Tabs.REPAIR); }, async openGameInstallFolder() { // Verify the game path is actually set