Fix to multiple chapter download incorrect state (#9707)
add subscription to download manager queue state flow (cherry picked from commit 0fffde50fffd6a774a64634bb60ad0e08f469719) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt
This commit is contained in:
parent
d2bd0055e0
commit
ba8ac27c70
@ -292,7 +292,7 @@ class MangaInfoScreenModel(
|
|||||||
) { state, mergedData ->
|
) { state, mergedData ->
|
||||||
state.copy(mergedData = mergedData)
|
state.copy(mergedData = mergedData)
|
||||||
}
|
}
|
||||||
.combine(downloadCache.changes) { state, _ -> state }
|
.combine(downloadCache.changes, downloadManager.queueState) { state, _, _ -> state }
|
||||||
// SY <--
|
// SY <--
|
||||||
.collectLatest { (manga, chapters /* SY --> */, flatMetadata, mergedData /* SY <-- */) ->
|
.collectLatest { (manga, chapters /* SY --> */, flatMetadata, mergedData /* SY <-- */) ->
|
||||||
val chapterItems = chapters.toChapterItems(manga /* SY --> */, mergedData /* SY <-- */)
|
val chapterItems = chapters.toChapterItems(manga /* SY --> */, mergedData /* SY <-- */)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user