Do proper check for next chapter's download status when downloading ahead

Fixes #10151 (I think?)
This commit is contained in:
arkon 2024-01-07 17:30:53 -05:00
parent 4b8fa059d5
commit 5854ad97e0

View file

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