mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-25 03:51:49 +01:00
Fixed catalogue downloading chapters
This commit is contained in:
parent
39b1f53b58
commit
65071dc01e
@ -416,7 +416,7 @@ class MangaDetailsPresenter(
|
|||||||
val downloadNew = preferences.downloadNew().getOrDefault()
|
val downloadNew = preferences.downloadNew().getOrDefault()
|
||||||
val categoriesToDownload =
|
val categoriesToDownload =
|
||||||
preferences.downloadNewCategories().getOrDefault().map(String::toInt)
|
preferences.downloadNewCategories().getOrDefault().map(String::toInt)
|
||||||
val shouldDownload =
|
val shouldDownload = !controller.fromCatalogue &&
|
||||||
(downloadNew && (categoriesToDownload.isEmpty() || getMangaCategoryIds().any { it in categoriesToDownload }))
|
(downloadNew && (categoriesToDownload.isEmpty() || getMangaCategoryIds().any { it in categoriesToDownload }))
|
||||||
if (shouldDownload) {
|
if (shouldDownload) {
|
||||||
downloadChapters(newChapters.first.sortedBy { it.chapter_number }
|
downloadChapters(newChapters.first.sortedBy { it.chapter_number }
|
||||||
|
Loading…
Reference in New Issue
Block a user