Respect disableMarkerUI when handling expandUI. Fixed #405
This commit is contained in:
parent
68f3d966d5
commit
5b5e908600
@ -90,8 +90,11 @@ export const actions: ActionTree<State, State> & 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;
|
||||
|
Loading…
Reference in New Issue
Block a user