Fixed catalogue downloading chapters

pull/3117/head
Jay 4 years ago
parent 39b1f53b58
commit 65071dc01e

@ -416,7 +416,7 @@ class MangaDetailsPresenter(
val downloadNew = preferences.downloadNew().getOrDefault()
val categoriesToDownload =
preferences.downloadNewCategories().getOrDefault().map(String::toInt)
val shouldDownload =
val shouldDownload = !controller.fromCatalogue &&
(downloadNew && (categoriesToDownload.isEmpty() || getMangaCategoryIds().any { it in categoriesToDownload }))
if (shouldDownload) {
downloadChapters(newChapters.first.sortedBy { it.chapter_number }

Loading…
Cancel
Save