mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 11:07:51 +02:00
Fix a rare crash when invoking "Mark previous as read" action
Closes #1421
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user