Allow to switch to previously discovered hidden themes

This commit is contained in:
Pieter Vander Vennet 2024-08-22 03:16:43 +02:00
parent ee77dd0fc9
commit 6530e6c3b0

View file

@ -28,7 +28,7 @@ export default class ThemeSearch implements GeocodingProvider {
const limit = options?.limit ?? 4
query = Utils.simplifyStringForSearch(query)
const withMatch = ThemeSearch.allThemes
.filter(th => !th.hideFromOverview )
.filter(th => !th.hideFromOverview || this._knownHiddenThemes.data.has(th.id))
.filter(th => th.id !== this._state.layout.id)
.filter(th => MoreScreen.MatchesLayout(th, query))
.slice(0, limit + 1)