mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
MangaPresenter: Don't update fav state when changing categories (#7594)
This commit is contained in:
parent
cd9487f94c
commit
59f8c1a288
1 changed files with 4 additions and 2 deletions
|
@ -365,10 +365,12 @@ class MangaPresenter(
|
||||||
|
|
||||||
fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List<Category>) {
|
fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List<Category>) {
|
||||||
moveMangaToCategories(categories)
|
moveMangaToCategories(categories)
|
||||||
|
if (!manga.favorite) {
|
||||||
presenterScope.launchIO {
|
presenterScope.launchIO {
|
||||||
updateManga.awaitUpdateFavorite(manga.id, true)
|
updateManga.awaitUpdateFavorite(manga.id, true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Move the given manga to categories.
|
* Move the given manga to categories.
|
||||||
|
|
Loading…
Reference in a new issue