Allow marking partially read chapters as unread

Closes #3777
This commit is contained in:
arkon 2022-10-08 13:26:25 -04:00
parent 60bcebe4d1
commit 4bba7a8bab

View File

@ -616,7 +616,7 @@ private fun SharedMangaBottomActionMenu(
}.takeIf { selected.any { !it.chapter.read } }, }.takeIf { selected.any { !it.chapter.read } },
onMarkAsUnreadClicked = { onMarkAsUnreadClicked = {
onMultiMarkAsReadClicked(selected.map { it.chapter }, false) onMultiMarkAsReadClicked(selected.map { it.chapter }, false)
}.takeIf { selected.any { it.chapter.read } }, }.takeIf { selected.any { it.chapter.read || it.chapter.lastPageRead > 0L } },
onMarkPreviousAsReadClicked = { onMarkPreviousAsReadClicked = {
onMarkPreviousAsReadClicked(selected[0].chapter) onMarkPreviousAsReadClicked(selected[0].chapter)
}.takeIf { selected.size == 1 }, }.takeIf { selected.size == 1 },