Feature(create_copy): add layer filter lock

This commit is contained in:
Pieter Vander Vennet 2025-07-10 16:53:12 +02:00
parent 6a200e04bc
commit d78207c98a
3 changed files with 48 additions and 2 deletions

View file

@ -24,7 +24,9 @@ export default class FilteredLayer {
/**
* Indicates if some filter is set.
* If this is the case, adding a new element of this type might be a bad idea
* If this is the case, adding a new element of this type might be a bad idea.
*
* Does not include the global filters
*/
readonly hasFilter: Store<boolean>

View file

@ -72,6 +72,12 @@ export class MenuState {
}
})
}
this.pageStates.filter.addCallback(opened => {
if(!opened){
this.highlightedLayerInFilters.set(undefined)
}
})
}
public openMenuIfNeeded(shouldShowWelcomeMessage: boolean, themeid: string) {