mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	| @@ -340,13 +340,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) { | ||||
|                             downloadManager.getDownloadCount(libraryManga.manga).toLong() | ||||
|                         } else { | ||||
|                             0 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user