fix bulk selection continuously adding mangas to the list even though they are added
This commit is contained in:
parent
5a458ac39c
commit
7b37d1cf0e
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ class BulkFavoriteScreenModel(
|
|||
val newSelection = state.selection.mutate { list ->
|
||||
if (toSelectedState != true && list.fastAny { it.id == manga.id }) {
|
||||
list.removeAll { it.id == manga.id }
|
||||
} else if (toSelectedState != false) {
|
||||
} else if (toSelectedState != false && list.none { it.id == manga.id }) {
|
||||
list.add(manga)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue