mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Fix to multiple chapter download incorrect state (#9707)
add subscription to download manager queue state flow
This commit is contained in:
parent
8775596a82
commit
0fffde50ff
1 changed files with 2 additions and 1 deletions
|
@ -149,7 +149,8 @@ class MangaInfoScreenModel(
|
|||
combine(
|
||||
getMangaAndChapters.subscribe(mangaId).distinctUntilChanged(),
|
||||
downloadCache.changes,
|
||||
) { mangaAndChapters, _ -> mangaAndChapters }
|
||||
downloadManager.queueState,
|
||||
) { mangaAndChapters, _, _ -> mangaAndChapters }
|
||||
.collectLatest { (manga, chapters) ->
|
||||
updateSuccessState {
|
||||
it.copy(
|
||||
|
|
Loading…
Reference in a new issue