Keep downloads in excluded categories when marking them read (#3558)
Closes #3558 Closes #3130 Fixes #1521
This commit is contained in:
@@ -49,6 +49,9 @@ class SetReadStatus(
|
|||||||
|
|
||||||
if (read && downloadPreferences.removeAfterMarkedAsRead.get()) {
|
if (read && downloadPreferences.removeAfterMarkedAsRead.get()) {
|
||||||
chaptersToUpdate
|
chaptersToUpdate
|
||||||
|
// Chapters here still carry their pre-update read state; downstream
|
||||||
|
// deletion filtering (excluded categories) relies on the new state.
|
||||||
|
.map { it.copy(read = true) }
|
||||||
.groupBy { it.mangaId }
|
.groupBy { it.mangaId }
|
||||||
.forEach { (mangaId, chapters) ->
|
.forEach { (mangaId, chapters) ->
|
||||||
deleteDownload.awaitAll(
|
deleteDownload.awaitAll(
|
||||||
|
|||||||
Reference in New Issue
Block a user