Skip to content

Commit

Permalink
Fix a rare crash when invoking "Mark previous as read" action
Browse files Browse the repository at this point in the history
Closes #1421
  • Loading branch information
AntsyLich committed Oct 31, 2024
1 parent 22d8aad commit f508d10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co

### Fixed
- Fixed "currentTab was used multiple times"
- Fixed a rare crash when invoking "Mark previous as read" action

### Improved
- Bangumi search now shows the score and summary of a search result ([@MajorTanya](https://github.com/MajorTanya)) ([#1396](https://github.com/mihonapp/mihon/pull/1396))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f508d10

Please sign in to comment.