mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Improve source lang handling
This commit is contained in:
@@ -19,7 +19,15 @@ data class Source(
|
||||
val isNsfw: Boolean,
|
||||
val displayName: String
|
||||
) {
|
||||
val displayLang: String
|
||||
get() = if (id == LOCAL_SOURCE_ID) {
|
||||
"other"
|
||||
} else {
|
||||
lang
|
||||
}
|
||||
|
||||
companion object {
|
||||
const val LOCAL_SOURCE_LANG = "localsourcelang"
|
||||
const val LOCAL_SOURCE_ID = 0L
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user