From 30250f2f82fc5e38a1b30c7b55c445efec23a114 Mon Sep 17 00:00:00 2001 From: curche <72807749+curche@users.noreply.github.com> Date: Mon, 4 Oct 2021 13:13:50 +0530 Subject: [PATCH] remove duplicate LocalSource entries in Browse --- .../eu/kanade/tachiyomi/ui/browse/source/SourcePresenter.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourcePresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourcePresenter.kt index 9c924408f9..8ac3ccb361 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourcePresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourcePresenter.kt @@ -119,11 +119,13 @@ class SourcePresenter( val languages = preferences.enabledLanguages().get() val disabledSourceIds = preferences.disabledSources().get() + val localSource = sourceManager.get(LocalSource.ID) return sourceManager.getCatalogueSources() .filter { it.lang in languages } .filterNot { it.id.toString() in disabledSourceIds } + .filterNot { it.id.toString() == localSource.toString() } .sortedBy { "(${it.lang}) ${it.name.lowercase()}" } + - sourceManager.get(LocalSource.ID) as LocalSource + localSource as LocalSource } companion object {