mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Fix to multiple chapter download incorrect state (#9707)
add subscription to download manager queue state flow
This commit is contained in:
		@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user