From 717e55497f0656bf121defe8ad4ddb87ec5846b0 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 6 Feb 2021 22:48:06 -0500 Subject: [PATCH] Fix downloads getting deleted when marked as unread --- .../main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt index 2cd45e8e74..0ab619f200 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt @@ -484,7 +484,7 @@ class MangaPresenter( db.updateChaptersProgress(chapters).executeAsBlocking() if (preferences.removeAfterMarkedAsRead()) { - deleteChapters(chapters) + deleteChapters(chapters.filter { it.read }) } } }