diff options
author | Rémy Raes <contact@remyraes.com> | 2022-10-06 16:02:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 16:02:04 +0200 |
commit | 831a38fb38122d1b2a28341bb26b903163862e1c (patch) | |
tree | fae130821f30c1b7c208bbe9f5ab3a189fadcbd1 /src-vue/src/plugins/store.ts | |
parent | 99cd32803edc497443ca03e692589ed332b2e6b2 (diff) | |
parent | 2487ac5f66bd76c2148ac6adb114782e3fd87ac1 (diff) | |
download | FlightCore-831a38fb38122d1b2a28341bb26b903163862e1c.tar.gz FlightCore-831a38fb38122d1b2a28341bb26b903163862e1c.zip |
Merge pull request #9 from GeckoEidechse/feat/enable-dev-mode-on-debug
feat: Enable dev mode directly if in debug mode
Diffstat (limited to 'src-vue/src/plugins/store.ts')
-rw-r--r-- | src-vue/src/plugins/store.ts | 5 |
1 files changed, 5 insertions, 0 deletions
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<FlightCoreStore>({ * 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 |