From 2487ac5f66bd76c2148ac6adb114782e3fd87ac1 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Thu, 6 Oct 2022 15:38:46 +0200 Subject: feat: Enable dev mode directly if in debug mode Allows skipping clicking version number 5 times when working on FlightCore. Release builds are not in debug mode, so dev mode is still disabled by default for end-users. --- src-vue/src/plugins/store.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src-vue/src') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index fdf0ce66..32fe0195 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -134,6 +134,11 @@ export const store = createStore({ * It invokes all Rust methods that are needed to initialize UI. */ async function _initializeApp(state: any) { + // Enable dev mode directly if application is in debug mode + if (await invoke("is_debug_mode")) { + state.developer_mode = true; + } + const result = await invoke("find_game_install_location_caller") .catch((err) => { // Gamepath not found or other error -- cgit v1.2.3