mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-12 21:42:49 +01:00
Fix download ahead while reading functionality (#9640)
Correct condition for downloading next chapter
This commit is contained in:
parent
1f618d6634
commit
ee684cbef5
@ -473,8 +473,7 @@ class ReaderViewModel(
|
|||||||
manga.title,
|
manga.title,
|
||||||
manga.source,
|
manga.source,
|
||||||
)
|
)
|
||||||
if (!isNextChapterDownloaded) return@launchIO
|
if (isNextChapterDownloaded) return@launchIO
|
||||||
|
|
||||||
val chaptersToDownload = getNextChapters.await(manga.id, nextChapter.id!!).run {
|
val chaptersToDownload = getNextChapters.await(manga.id, nextChapter.id!!).run {
|
||||||
if (readerPreferences.skipDupe().get()) {
|
if (readerPreferences.skipDupe().get()) {
|
||||||
removeDuplicates(nextChapter.toDomainChapter()!!)
|
removeDuplicates(nextChapter.toDomainChapter()!!)
|
||||||
|
Loading…
Reference in New Issue
Block a user