mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 05:27:28 +01:00
Fix Local and Other lang sources showing up in seperate Other Categories (#6024)
* group LocalSource and Other lang source together * use better kotlin syntactic sugar * add lang "other" to local * remove duplicate LocalSource entries in Browse * linting * revert unnecessary linting was a manually adding change * Revert previous two commit but not the most recent This reverts commit 30250f2f82fc5e38a1b30c7b55c445efec23a114 This also reversts commit 359ed5a8cda91577216b593a4138280e971e0126 * better way to avoid duplicate Local Sources * more linting by plugin * `""` lang is no longer used anywhere
This commit is contained in:
@@ -120,10 +120,9 @@ class SourcePresenter(
|
||||
val disabledSourceIds = preferences.disabledSources().get()
|
||||
|
||||
return sourceManager.getCatalogueSources()
|
||||
.filter { it.lang in languages }
|
||||
.filter { it.lang in languages || it.id == LocalSource.ID }
|
||||
.filterNot { it.id.toString() in disabledSourceIds }
|
||||
.sortedBy { "(${it.lang}) ${it.name.lowercase()}" } +
|
||||
sourceManager.get(LocalSource.ID) as LocalSource
|
||||
.sortedBy { "(${it.lang}) ${it.name.lowercase()}" }
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user