Don't reapply UI visibility settings on subsequent config loads
This commit is contained in:
parent
ff7250f081
commit
6812f1d78b
@ -94,7 +94,8 @@ export const actions: ActionTree<State, State> & Actions = {
|
||||
return config;
|
||||
}
|
||||
|
||||
if(state.configuration.expandUI && !state.ui.smallScreen) {
|
||||
//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: 'maps', state: true});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user