mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 05:59:17 +01:00
Move io tasks for removing library entries to io thread
relates to #797 but tbd if it fixes it
This commit is contained in:
parent
3ec46f958d
commit
f1c624fe16
@ -573,10 +573,12 @@ class MangaDetailsPresenter(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun confirmDeletion() {
|
fun confirmDeletion() {
|
||||||
coverCache.deleteFromCache(manga)
|
scope.launchIO {
|
||||||
downloadManager.deleteManga(manga, source)
|
coverCache.deleteFromCache(manga)
|
||||||
customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!))
|
customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!))
|
||||||
asyncUpdateMangaAndChapters(true)
|
downloadManager.deleteManga(manga, source)
|
||||||
|
asyncUpdateMangaAndChapters(true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setFavorite(favorite: Boolean) {
|
fun setFavorite(favorite: Boolean) {
|
||||||
|
Loading…
Reference in New Issue
Block a user