This commit is contained in:
curche 2021-10-05 01:47:09 +05:30
parent 30250f2f82
commit 359ed5a8cd
2 changed files with 2 additions and 3 deletions

View File

@ -122,8 +122,7 @@ class SourcePresenter(
val localSource = sourceManager.get(LocalSource.ID) val localSource = sourceManager.get(LocalSource.ID)
return sourceManager.getCatalogueSources() return sourceManager.getCatalogueSources()
.filter { it.lang in languages } .filter { it.lang in languages }
.filterNot { it.id.toString() in disabledSourceIds } .filterNot { it.id.toString() in disabledSourceIds + localSource?.id.toString() }
.filterNot { it.id.toString() == localSource.toString() }
.sortedBy { "(${it.lang}) ${it.name.lowercase()}" } + .sortedBy { "(${it.lang}) ${it.name.lowercase()}" } +
localSource as LocalSource localSource as LocalSource
} }