From 6530e6c3b093d178c284104a86e63ad252258ceb Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 22 Aug 2024 03:16:43 +0200 Subject: [PATCH] Allow to switch to previously discovered hidden themes --- src/Logic/Geocoding/ThemeSearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logic/Geocoding/ThemeSearch.ts b/src/Logic/Geocoding/ThemeSearch.ts index 088cae184..7806138bd 100644 --- a/src/Logic/Geocoding/ThemeSearch.ts +++ b/src/Logic/Geocoding/ThemeSearch.ts @@ -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)