aboutsummaryrefslogtreecommitdiff
path: root/src-vue
diff options
context:
space:
mode:
authorRémy Raes <contact@remyraes.com>2022-10-06 16:02:04 +0200
committerGitHub <noreply@github.com>2022-10-06 16:02:04 +0200
commit831a38fb38122d1b2a28341bb26b903163862e1c (patch)
treefae130821f30c1b7c208bbe9f5ab3a189fadcbd1 /src-vue
parent99cd32803edc497443ca03e692589ed332b2e6b2 (diff)
parent2487ac5f66bd76c2148ac6adb114782e3fd87ac1 (diff)
downloadFlightCore-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')
-rw-r--r--src-vue/src/plugins/store.ts5
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