This commit is contained in:
Horis committed 2024-12-15 17:56:18 +08:00
1 parent efd11879ed
commit 5b0c4acb5d
1 file changed
+4 -2
@@ -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(