Fixed catalogue downloading chapters

This commit is contained in:
Jay 2020-05-01 15:55:32 -04:00
parent 39b1f53b58
commit 65071dc01e

View File

@ -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 }