Filter local manga as downloaded (#1674)

* Filter local manga as downloaded

* Filter local manga chapters as downloaded
This commit is contained in:
Chris Allan
2018-10-27 10:33:43 -07:00
committed by inorichi
parent 46896d9e86
commit 3186661420
2 changed files with 6 additions and 1 deletions
@@ -126,6 +126,10 @@ class LibraryPresenter(
// Filter when there are no downloads.
if (filterDownloaded) {
// Local manga are always downloaded
if (item.manga.source == LocalSource.ID) {
return@f true
}
// Don't bother with directory checking if download count has been set.
if (item.downloadCount != -1) {
return@f item.downloadCount > 0