Move io tasks for removing library entries to io thread

relates to #797 but tbd if it fixes it
This commit is contained in:
Jays2Kings 2021-05-08 15:15:13 -04:00
parent 3ec46f958d
commit f1c624fe16

View File

@ -573,11 +573,13 @@ class MangaDetailsPresenter(
}
fun confirmDeletion() {
scope.launchIO {
coverCache.deleteFromCache(manga)
downloadManager.deleteManga(manga, source)
customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!))
downloadManager.deleteManga(manga, source)
asyncUpdateMangaAndChapters(true)
}
}
fun setFavorite(favorite: Boolean) {
if (manga.favorite == favorite) {