Fix total item count in library app bar (#8117)
(cherry picked from commit ef2c9460b5dc15bb9af6a430fa0a93765debcef4)
This commit is contained in:
parent
54dcb640bb
commit
5002bafa22
@ -927,7 +927,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…
x
Reference in New Issue
Block a user