فهرست منبع

Fix library download counts not being loaded if downloaded filter is in exclusion state

arkon 2 سال پیش
والد
کامیت
e4a2f35907
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryPresenter.kt

+ 1 - 1
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