|
@@ -11,6 +11,7 @@ import eu.kanade.tachiyomi.data.database.models.MangaCategory
|
|
|
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
|
|
import eu.kanade.tachiyomi.data.preference.getOrDefault
|
|
|
import eu.kanade.tachiyomi.source.CatalogueSource
|
|
|
+import eu.kanade.tachiyomi.source.LocalSource
|
|
|
import eu.kanade.tachiyomi.source.Source
|
|
|
import eu.kanade.tachiyomi.source.SourceManager
|
|
|
import eu.kanade.tachiyomi.source.model.Filter
|
|
@@ -303,15 +304,11 @@ open class CataloguePresenter(
|
|
|
val languages = prefs.enabledLanguages().getOrDefault()
|
|
|
val hiddenCatalogues = prefs.hiddenCatalogues().getOrDefault()
|
|
|
|
|
|
- // Ensure at least one language
|
|
|
- if (languages.isEmpty()) {
|
|
|
- languages.add("en")
|
|
|
- }
|
|
|
-
|
|
|
return sourceManager.getCatalogueSources()
|
|
|
.filter { it.lang in languages }
|
|
|
.filterNot { it.id.toString() in hiddenCatalogues }
|
|
|
- .sortedBy { "(${it.lang}) ${it.name}" }
|
|
|
+ .sortedBy { "(${it.lang}) ${it.name}" } +
|
|
|
+ sourceManager.get(LocalSource.ID) as LocalSource
|
|
|
}
|
|
|
|
|
|
/**
|