Minor cleanup

This commit is contained in:
arkon
2023-01-12 22:53:28 -05:00
parent 4d8289cd36
commit a2ee4e63ae
8 changed files with 43 additions and 45 deletions
@@ -389,10 +389,10 @@ class MangaInfoScreenModel(
fun moveMangaToCategoriesAndAddToLibrary(manga: Manga, categories: List<Long>) {
moveMangaToCategory(categories)
if (!manga.favorite) {
coroutineScope.launchIO {
updateManga.awaitUpdateFavorite(manga.id, true)
}
if (manga.favorite) return
coroutineScope.launchIO {
updateManga.awaitUpdateFavorite(manga.id, true)
}
}