From 5b5e908600024fb29c608845534c5b6b1c5bc410 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Tue, 26 Apr 2022 15:58:35 +0100 Subject: [PATCH] Respect disableMarkerUI when handling expandUI. Fixed #405 --- src/store/actions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;