This commit is contained in:
Horis
2024-12-15 17:56:18 +08:00
parent 5d2eb919ae
commit 219e58ea26
@@ -148,8 +148,10 @@ object BookHelp {
book.getFolderName(), book.getFolderName(),
bookChapter.getFileName(), bookChapter.getFileName(),
).writeText(content) ).writeText(content)
bookChapter.wordCount = StringUtils.wordCountFormat(content.length) if (!book.isLocal) {
appDb.bookChapterDao.update(bookChapter) bookChapter.wordCount = StringUtils.wordCountFormat(content.length)
appDb.bookChapterDao.update(bookChapter)
}
} }
suspend fun saveImages( suspend fun saveImages(