mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix extension searching not working while said source is not pinned/enabled
Fixes #1078
This commit is contained in:
parent
515a953d98
commit
9f033cbac0
1 changed files with 5 additions and 2 deletions
|
@ -130,8 +130,11 @@ open class GlobalSearchPresenter(
|
|||
return enabledSources
|
||||
}
|
||||
|
||||
val filterSources = extensionManager.installedExtensions.filter { it.pkgName == filter }
|
||||
.flatMap { it.sources }.filter { it in enabledSources }
|
||||
val languages = preferences.enabledLanguages().get()
|
||||
val filterSources = extensionManager.installedExtensions
|
||||
.filter { it.pkgName == filter }
|
||||
.flatMap { it.sources }
|
||||
.filter { it.lang in languages }
|
||||
.filterIsInstance<CatalogueSource>()
|
||||
|
||||
if (filterSources.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue