mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-25 18:38:23 +01:00
Fix total item count in library app bar (#8117)
This commit is contained in:
parent
ad84a8c3e9
commit
ef2c9460b5
@ -631,7 +631,7 @@ class LibraryPresenter(
|
||||
val count = when {
|
||||
category == null || mangaCountVisibility.not() -> null
|
||||
tabVisibility.not() -> loadedManga[category.id]?.size
|
||||
else -> loadedManga.values.flatten().distinct().size
|
||||
else -> loadedManga.values.flatten().distinctBy { it.manga.id }.size
|
||||
}
|
||||
|
||||
value = when (category) {
|
||||
|
Loading…
Reference in New Issue
Block a user