mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-22 21:02:16 +03:00
Do proper check for next chapter's download status when downloading ahead
Fixes #10151 (I think?)
This commit is contained in:
parent
4b8fa059d5
commit
5854ad97e0
1 changed files with 2 additions and 1 deletions
|
@ -462,7 +462,8 @@ class ReaderViewModel @JvmOverloads constructor(
|
|||
manga.title,
|
||||
manga.source,
|
||||
)
|
||||
if (isNextChapterDownloaded) return@launchIO
|
||||
if (!isNextChapterDownloaded) return@launchIO
|
||||
|
||||
val chaptersToDownload = getNextChapters.await(manga.id, nextChapter.id!!).run {
|
||||
if (readerPreferences.skipDupe().get()) {
|
||||
removeDuplicates(nextChapter.toDomainChapter()!!)
|
||||
|
|
Loading…
Reference in a new issue