mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
Merge pull request #2093 from 821938089/fix-load-content-fail-msg
修复本地书无内容时提示”没有书源“的bug
This commit is contained in:
@@ -310,8 +310,9 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
if (book != null && bookSource != null) {
|
||||
CacheBook.getOrCreate(bookSource, book).download(scope, chapter)
|
||||
} else if (book != null) {
|
||||
val msg = if (book.isLocalBook()) "无内容" else "没有书源"
|
||||
contentLoadFinish(
|
||||
book, chapter, "没有书源", resetPageOffset = resetPageOffset
|
||||
book, chapter, "加载正文失败\n$msg", resetPageOffset = resetPageOffset
|
||||
) {
|
||||
success?.invoke()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user