优化
Some checks failed
Test Build / prepare (push) Has been cancelled
Test Build / build (app, release) (push) Has been cancelled
Test Build / build (app, releaseA) (push) Has been cancelled
Test Build / prerelease (push) Has been cancelled
Test Build / lanzou (push) Has been cancelled
Test Build / test_Branch (push) Has been cancelled
Test Build / telegram (push) Has been cancelled

This commit is contained in:
Horis
2025-03-13 16:00:29 +08:00
parent ea6e2770db
commit 7feef69b85

View File

@@ -184,9 +184,8 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
if (!inBookshelf && dbBook != null && !dbBook.isNotShelf && dbBook.origin == book.origin) {
/**
* book 来自搜索时(inBookshelf == false),搜索的书名不存在于书架,但是加载详情后,书名更新,存在同名书籍
* 此时 book 的数据会与数据库中的不同,需要更新 #3652
* 此时 book 的数据会与数据库中的不同,需要更新 #3652 #4619
* book 加载详情后虽然书名作者相同,但是又可能不是数据库中(书源不同)的那本书 #3149
* 书籍自定义变量问题 #4619 #4819
*/
dbBook.updateTo(it)
inBookshelf = true