Using scope for updating library ui during global update

since removing it from the scope broke it
pull/3372/head
Jay 4 years ago
parent c9e3882077
commit d99f4d1fac

@ -651,8 +651,10 @@ class LibraryPresenter(
/** Called when Library Service updates a manga, update the item as well */ /** Called when Library Service updates a manga, update the item as well */
fun updateManga(manga: LibraryManga) { fun updateManga(manga: LibraryManga) {
scope.launch {
getLibrary() getLibrary()
} }
}
/** Undo the removal of the manga once in library */ /** Undo the removal of the manga once in library */
fun reAddMangas(mangas: List<Manga>) { fun reAddMangas(mangas: List<Manga>) {

Loading…
Cancel
Save