diff options
author | Alystrasz <contact@remyraes.com> | 2022-09-26 18:59:23 +0200 |
---|---|---|
committer | Alystrasz <contact@remyraes.com> | 2022-09-26 18:59:23 +0200 |
commit | a930c0342a584b4e74566a354876585b02635bed (patch) | |
tree | d49c8849685954b839515b0df9abb57e85871b53 /src-vue/src/plugins | |
parent | 7ebd5bbbdb4ce004e7d67ce33fb08957b89d1b53 (diff) | |
download | FlightCore-a930c0342a584b4e74566a354876585b02635bed.tar.gz FlightCore-a930c0342a584b4e74566a354876585b02635bed.zip |
developer mode can be turned off from developer view
Diffstat (limited to 'src-vue/src/plugins')
-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 4bb48f66..2d4b5684 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -21,6 +21,11 @@ export const store = createStore({ mutations: { toggleDeveloperMode(state) { state.developer_mode = !state.developer_mode; + + // Reset tab when closing dev mode. + if (!state.developer_mode) { + store.commit('updateCurrentTab', Tabs.PLAY); + } }, initialize(state) { _initializeApp(state); |