mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 13:01:50 +01:00
show correct number of items in the library tit... (#5516)
...le, even when all manga are in a category that isn't the default category.
This commit is contained in:
parent
e65f59b3df
commit
8d5f798591
@ -147,11 +147,8 @@ class LibraryController(
|
|||||||
|
|
||||||
if (preferences.categoryNumberOfItems().get() && libraryMangaRelay.hasValue()) {
|
if (preferences.categoryNumberOfItems().get() && libraryMangaRelay.hasValue()) {
|
||||||
libraryMangaRelay.value.mangas.let { mangaMap ->
|
libraryMangaRelay.value.mangas.let { mangaMap ->
|
||||||
if (!showCategoryTabs) {
|
if (!showCategoryTabs || adapter?.categories?.size == 1) {
|
||||||
title += " (${mangaMap[currentCategory?.id]?.size ?: 0})"
|
title += " (${mangaMap[currentCategory?.id]?.size ?: 0})"
|
||||||
} else if (adapter?.categories?.size == 1) {
|
|
||||||
// Only "Default" category
|
|
||||||
title += " (${mangaMap[0]?.size ?: 0})"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user