mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-15 13:37:29 +01:00
Fix default category showing up in edit manga categories list
Also remove some usages of runBlocking
This commit is contained in:
@@ -8,13 +8,13 @@ import eu.kanade.tachiyomi.R
|
||||
|
||||
val Category.visualName: String
|
||||
@Composable
|
||||
get() = when (id) {
|
||||
Category.UNCATEGORIZED_ID -> stringResource(id = R.string.label_default)
|
||||
get() = when {
|
||||
isSystemCategory -> stringResource(id = R.string.label_default)
|
||||
else -> name
|
||||
}
|
||||
|
||||
fun Category.visualName(context: Context): String =
|
||||
when (id) {
|
||||
Category.UNCATEGORIZED_ID -> context.getString(R.string.label_default)
|
||||
when {
|
||||
isSystemCategory -> context.getString(R.string.label_default)
|
||||
else -> name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user