mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -167,6 +167,9 @@ object ReadBook : CoroutineScope by MainScope() {
|
||||
fun upWebBook(book: Book) {
|
||||
if (book.isLocal) {
|
||||
bookSource = null
|
||||
if (book.getImageStyle().isNullOrBlank() && (book.isImage || book.isPdf)) {
|
||||
book.setImageStyle(Book.imgStyleFull)
|
||||
}
|
||||
} else {
|
||||
appDb.bookSourceDao.getBookSource(book.origin)?.let {
|
||||
bookSource = it
|
||||
|
||||
Reference in New Issue
Block a user