From 8ef7af613f20f265386ccb3d301c43ff49108cb1 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 27 Nov 2024 01:25:33 +0100 Subject: [PATCH] Fix: fix #2281 --- src/UI/BigComponents/MenuDrawer.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/UI/BigComponents/MenuDrawer.svelte b/src/UI/BigComponents/MenuDrawer.svelte index 1cedb769b..a4cba25ff 100644 --- a/src/UI/BigComponents/MenuDrawer.svelte +++ b/src/UI/BigComponents/MenuDrawer.svelte @@ -64,9 +64,11 @@ let location = state.mapProperties.location export let onlyLink: boolean const t = Translations.t.general.menu - let shown = new UIEventSource(state.guistate.pageStates.menu.data) + let shown = new UIEventSource(state.guistate.pageStates.menu.data || !onlyLink) state.guistate.pageStates.menu.addCallback(isShown => { - console.log("Setting", isShown) + if(!onlyLink){ + return true + } if(isShown){ shown.setData(true) }else{