Skip to content

Commit

Permalink
Do proper check for next chapter's download status when downloading a…
Browse files Browse the repository at this point in the history
…head

Fixes #10151 (I think?)
  • Loading branch information
arkon committed Jan 7, 2024
1 parent 4b8fa05 commit 5854ad9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()!!)
Expand Down

0 comments on commit 5854ad9

Please sign in to comment.