This commit is contained in:
Horis committed 2025-02-27 18:27:56 +08:00
1 parent 0ac7b56b60
commit f8557bf338
2 files changed
+1 -5

No files matched your search

@@ -88,10 +88,6 @@ class ContentProcessor private constructor(
return contentReplaceRules
}
fun getAllReplaceRules(): List<ReplaceRule> {
return titleReplaceRules + contentReplaceRules
}
fun getContent(
book: Book,
chapter: BookChapter,
@@ -26,7 +26,7 @@ class ReplaceRuleViewModel(application: Application) : BaseViewModel(application
if (showApplied) {
val book = ReadBook.book ?: return@execute
val textChapter = ReadBook.curTextChapter ?: return@execute
enabledForBookRules = ContentProcessor.get(book).getAllReplaceRules().toSet()
enabledForBookRules = ContentProcessor.get(book).getContentReplaceRules().toSet()
textChapter.effectiveReplaceRules?.let {
appliedForBookRules = it.toSet()
}