Fetch download counts if library is filtered by downloaded
Fixes #8277
(cherry picked from commit 9792a6cb78)
# Conflicts:
# app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt
This commit is contained in:
@@ -495,13 +495,14 @@ class LibraryPresenter(
|
||||
val libraryMangasFlow = combine(
|
||||
getLibraryManga.subscribe(),
|
||||
libraryPreferences.downloadBadge().changes(),
|
||||
libraryPreferences.filterDownloaded().changes(),
|
||||
downloadCache.changes,
|
||||
) { libraryMangaList, downloadBadgePref, _ ->
|
||||
) { libraryMangaList, downloadBadgePref, filterDownloadedPref, _ ->
|
||||
libraryMangaList
|
||||
.map { libraryManga ->
|
||||
// Display mode based on user preference: take it from global library setting or category
|
||||
LibraryItem(libraryManga).apply {
|
||||
downloadCount = if (downloadBadgePref) {
|
||||
downloadCount = if (downloadBadgePref || filterDownloadedPref == State.INCLUDE.value) {
|
||||
// SY -->
|
||||
if (libraryManga.manga.source == MERGED_SOURCE_ID) {
|
||||
runBlocking {
|
||||
|
||||
Reference in New Issue
Block a user