diff --git a/front/src/Components/Menu/SettingsSubMenu.svelte b/front/src/Components/Menu/SettingsSubMenu.svelte index 6b3e96f8..38544639 100644 --- a/front/src/Components/Menu/SettingsSubMenu.svelte +++ b/front/src/Components/Menu/SettingsSubMenu.svelte @@ -3,6 +3,7 @@ import {localUserStore} from "../../Connexion/LocalUserStore"; import {videoConstraintStore} from "../../Stores/MediaStore"; import {HtmlUtils} from "../../WebRtc/HtmlUtils"; import {isMobile} from "../../Enum/EnvironmentVariable"; +import {menuVisiblilityStore} from "../../Stores/MenuStore"; let fullscreen : boolean = localUserStore.getFullscreen(); let notification : boolean = localUserStore.getNotification() === 'granted'; @@ -22,6 +23,8 @@ function saveSetting(){ previewValueVideo = valueVideo; videoConstraintStore.setFrameRate(valueVideo); } + + closeMenu(); } function changeFullscreen() { @@ -50,6 +53,10 @@ function changeNotification() { }) } } + +function closeMenu() { + menuVisiblilityStore.set(false); +}