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

Closes #1421
This commit is contained in:
AntsyLich
2024-10-31 19:08:11 +06:00
parent 22d8aad598
commit f508d10ad1
2 changed files with 2 additions and 0 deletions

View File

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