Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Mar 24, 2024
1 parent f32fc4f commit f6f99d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/io/legado/app/ui/main/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ class MainViewModel(application: Application) : BaseViewModel(application) {
postUpBooksLiveData()
}.onCompletion {
upTocJob = null
if (waitUpTocBooks.isNotEmpty()) {
startUpTocJob()
}
if (it == null && cacheBookJob == null && !CacheBookService.isRun) {
//所有目录更新完再开始缓存章节
cacheBook()
Expand Down

0 comments on commit f6f99d2

Please sign in to comment.