This commit is contained in:
Horis 2024-12-15 17:56:18 +08:00
parent 5d2eb919ae
commit 219e58ea26

View File

@ -148,8 +148,10 @@ object BookHelp {
book.getFolderName(),
bookChapter.getFileName(),
).writeText(content)
bookChapter.wordCount = StringUtils.wordCountFormat(content.length)
appDb.bookChapterDao.update(bookChapter)
if (!book.isLocal) {
bookChapter.wordCount = StringUtils.wordCountFormat(content.length)
appDb.bookChapterDao.update(bookChapter)
}
}
suspend fun saveImages(