Fix current chapter download #840

This commit is contained in:
Koitharu
2024-04-14 08:55:10 +03:00
parent 535feb424c
commit 3ee6ac605d

View File

@@ -28,7 +28,7 @@ class DownloadDialogHelper(
}
if (history != null) {
val unreadChapters = branchChapters.takeLastWhile { it.id != history.chapterId }
val unreadChapters = branchChapters.dropWhile { it.id != history.chapterId }
if (unreadChapters.isNotEmpty() && unreadChapters.size < branchChapters.size) {
add(DownloadOption.AllUnreadChapters(unreadChapters.ids(), branch))
if (unreadChapters.size > 5) {