fix minimize presentation button initial state
This commit is contained in:
parent
9a718128d7
commit
f6997d66fa
@ -51,7 +51,7 @@ const swapLayout = {
|
||||
const setSwapLayout = (layoutContextDispatch) => {
|
||||
const hidePresentation = getFromUserSettings('bbb_hide_presentation', LAYOUT_CONFIG.hidePresentation);
|
||||
|
||||
swapLayout.value = getFromUserSettings('bbb_auto_swap_layout', LAYOUT_CONFIG.autoSwapLayout);
|
||||
swapLayout.value = getFromUserSettings('bbb_auto_swap_layout', LAYOUT_CONFIG.autoSwapLayout) || hidePresentation;
|
||||
swapLayout.tracker.changed();
|
||||
|
||||
if (!hidePresentation) {
|
||||
@ -78,7 +78,7 @@ export const shouldEnableSwapLayout = () => {
|
||||
return true;
|
||||
}
|
||||
return !shouldShowScreenshare() && !shouldShowExternalVideo();
|
||||
}
|
||||
};
|
||||
|
||||
export const getSwapLayout = () => {
|
||||
swapLayout.tracker.depend();
|
||||
|
Loading…
Reference in New Issue
Block a user