diff --git a/src/store/actions.ts b/src/store/actions.ts index ed48370..1b7ae55 100644 --- a/src/store/actions.ts +++ b/src/store/actions.ts @@ -90,8 +90,11 @@ export const actions: ActionTree & Actions = { //Make UI visible if configured, there's enough space to do so, and this is the first config load if(!state.ui.visibleElements.size && state.configuration.expandUI && !state.ui.smallScreen) { commit(MutationTypes.SET_UI_ELEMENT_VISIBILITY, {element: 'players', state: true}); - commit(MutationTypes.SET_UI_ELEMENT_VISIBILITY, {element: 'markers', state: true}); commit(MutationTypes.SET_UI_ELEMENT_VISIBILITY, {element: 'maps', state: true}); + + if(!state.ui.disableMarkerUI) { + commit(MutationTypes.SET_UI_ELEMENT_VISIBILITY, {element: 'markers', state: true}); + } } let worldName, mapName;