This commit is contained in:
Pieter Vander Vennet 2024-11-27 01:25:33 +01:00
parent 55741d7043
commit 8ef7af613f

View file

@ -64,9 +64,11 @@
let location = state.mapProperties.location let location = state.mapProperties.location
export let onlyLink: boolean export let onlyLink: boolean
const t = Translations.t.general.menu 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 => { state.guistate.pageStates.menu.addCallback(isShown => {
console.log("Setting", isShown) if(!onlyLink){
return true
}
if(isShown){ if(isShown){
shown.setData(true) shown.setData(true)
}else{ }else{