pull/2610/head
kunfei 2 years ago
parent 2e28ef7e6c
commit 647fcf6734
  1. 2
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -128,8 +128,8 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
WebBook.getBookInfoAwait(source, book) WebBook.getBookInfoAwait(source, book)
} }
val toc = WebBook.getChapterListAwait(source, book).getOrThrow() val toc = WebBook.getChapterListAwait(source, book).getOrThrow()
book.removeType(BookType.updateError)
book.sync(oldBook) book.sync(oldBook)
book.removeType(BookType.updateError)
if (book.bookUrl == bookUrl) { if (book.bookUrl == bookUrl) {
appDb.bookDao.update(book) appDb.bookDao.update(book)
} else { } else {

Loading…
Cancel
Save