From 89806f36e84530f642d0c630b6e53c8fe0139fc9 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 8 May 2023 16:53:36 +0200 Subject: feat: Button to open game folder (#302) * feat: Add button to open Titanfall2 folder * feat: Add English localisation * feat: Add German localisation * chore: Add placeholder French translation while waiting for translators * feat: add French localization * fix: Use append slot for button This way there input field has a consistent size --------- Co-authored-by: Remy Raes --- src-vue/src/views/SettingsView.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src-vue/src/views') diff --git a/src-vue/src/views/SettingsView.vue b/src-vue/src/views/SettingsView.vue index 772a4c5c..a8c539e8 100644 --- a/src-vue/src/views/SettingsView.vue +++ b/src-vue/src/views/SettingsView.vue @@ -13,6 +13,11 @@ + @@ -78,6 +83,7 @@ import { Store } from 'tauri-plugin-store-api'; import { showErrorNotification, showNotification } from "../utils/ui"; import LanguageSelector from "../components/LanguageSelector.vue"; const persistentStore = new Store('flight-core-settings.json'); +import { open } from '@tauri-apps/api/shell'; export default defineComponent({ name: "SettingsView", @@ -143,6 +149,10 @@ export default defineComponent({ showErrorNotification(error); }); }, + async openGameInstallFolder() { + // Opens the folder in default file explorer application + await open(`${this.$store.state.game_path}`); + } }, mounted() { document.querySelector('input')!.disabled = true; -- cgit v1.2.3