Fix a rare crash when invoking "Mark previous as read" action

Closes #1421

(cherry picked from commit f508d10ad13560d7316df8642bc93fe66c05b9a8)

# Conflicts:
#	CHANGELOG.md
This commit is contained in:
AntsyLich 2024-10-31 19:08:11 +06:00 committed by Jobobby04
parent 2187731d70
commit 226321f334

View File

@ -1263,6 +1263,7 @@ class MangaScreenModel(
*/
fun markChaptersRead(chapters: List<Chapter>, read: Boolean) {
toggleAllSelection(false)
if (chapters.isEmpty()) return
screenModelScope.launchIO {
setReadStatus.await(
read = read,