mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-26 19:08:25 +01:00
parent
f30150c0f0
commit
9792a6cb78
@ -340,13 +340,14 @@ class LibraryPresenter(
|
|||||||
val libraryMangasFlow = combine(
|
val libraryMangasFlow = combine(
|
||||||
getLibraryManga.subscribe(),
|
getLibraryManga.subscribe(),
|
||||||
libraryPreferences.downloadBadge().changes(),
|
libraryPreferences.downloadBadge().changes(),
|
||||||
|
libraryPreferences.filterDownloaded().changes(),
|
||||||
downloadCache.changes,
|
downloadCache.changes,
|
||||||
) { libraryMangaList, downloadBadgePref, _ ->
|
) { libraryMangaList, downloadBadgePref, filterDownloadedPref, _ ->
|
||||||
libraryMangaList
|
libraryMangaList
|
||||||
.map { libraryManga ->
|
.map { libraryManga ->
|
||||||
// Display mode based on user preference: take it from global library setting or category
|
// Display mode based on user preference: take it from global library setting or category
|
||||||
LibraryItem(libraryManga).apply {
|
LibraryItem(libraryManga).apply {
|
||||||
downloadCount = if (downloadBadgePref) {
|
downloadCount = if (downloadBadgePref || filterDownloadedPref == State.INCLUDE.value) {
|
||||||
downloadManager.getDownloadCount(libraryManga.manga).toLong()
|
downloadManager.getDownloadCount(libraryManga.manga).toLong()
|
||||||
} else {
|
} else {
|
||||||
0
|
0
|
||||||
|
Loading…
Reference in New Issue
Block a user