Update MenuState.ts

This commit is contained in:
Pieter Vander Vennet 2024-08-31 15:41:43 +02:00 committed by GitHub
parent d13d58aef2
commit 0599afdcb4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ export class MenuState {
"usersettings", "share", "menu"
] as const
public readonly menuIsOpened = new UIEventSource(false)
public readonly menuIsOpened
public readonly pageStates: Record<PageType, UIEventSource<boolean>>
public readonly highlightedLayerInFilters: UIEventSource<string> = new UIEventSource<string>(
@ -44,7 +44,7 @@ export class MenuState {
})
}
this.pageStates = <Record<PageType, UIEventSource<boolean>>>states
this.menuOsOpened = this.pageStates.menu
const visitedBefore = LocalStorageSource.GetParsed<boolean>(
themeid + "thememenuisopened", false
)