瀏覽代碼

Fix to multiple chapter download incorrect state (#9707)

add subscription to download manager queue state flow
zaghdaneh 1 年之前
父節點
當前提交
0fffde50ff
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt

+ 2 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt

@@ -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(