mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
0d24d1bde8
commit
63932b065f
@ -232,7 +232,9 @@ open class ChangeBookSourceViewModel(application: Application) : BaseViewModel(a
|
|||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun loadBookInfo(source: BookSource, book: Book) {
|
private suspend fun loadBookInfo(source: BookSource, book: Book) {
|
||||||
|
if (book.tocUrl.isEmpty()) {
|
||||||
WebBook.getBookInfoAwait(source, book)
|
WebBook.getBookInfoAwait(source, book)
|
||||||
|
}
|
||||||
if (AppConfig.changeSourceLoadToc || AppConfig.changeSourceLoadWordCount) {
|
if (AppConfig.changeSourceLoadToc || AppConfig.changeSourceLoadWordCount) {
|
||||||
loadBookToc(source, book)
|
loadBookToc(source, book)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user