Jelajahi Sumber

MangaPresenter: Don't update fav state when changing categories (#7594)

Ivan Iskandar 2 tahun lalu
induk
melakukan
59f8c1a288

+ 4 - 2
app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaPresenter.kt

@@ -365,8 +365,10 @@ class MangaPresenter(
 
     fun moveMangaToCategoriesAndAddToLibrary(manga: DomainManga, categories: List<Category>) {
         moveMangaToCategories(categories)
-        presenterScope.launchIO {
-            updateManga.awaitUpdateFavorite(manga.id, true)
+        if (!manga.favorite) {
+            presenterScope.launchIO {
+                updateManga.awaitUpdateFavorite(manga.id, true)
+            }
         }
     }