From e4a2f35907a8f0eefcbd30b6a9bde258dfd89111 Mon Sep 17 00:00:00 2001 From: arkon Date: Fri, 28 Oct 2022 19:05:55 -0400 Subject: [PATCH] Fix library download counts not being loaded if downloaded filter is in exclusion state --- .../java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt index 9a59a8640..738e620b9 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt @@ -331,7 +331,7 @@ class LibraryPresenter( .map { libraryManga -> // Display mode based on user preference: take it from global library setting or category LibraryItem(libraryManga).apply { - downloadCount = if (downloadBadgePref || filterDownloadedPref == State.INCLUDE.value) { + downloadCount = if (downloadBadgePref || filterDownloadedPref != State.IGNORE.value) { downloadManager.getDownloadCount(libraryManga.manga).toLong() } else { 0