This commit is contained in:
Horis
2025-02-27 18:27:56 +08:00
parent b70d93e497
commit a076409bf0
2 changed files with 1 additions and 5 deletions

View File

@@ -88,10 +88,6 @@ class ContentProcessor private constructor(
return contentReplaceRules
}
fun getAllReplaceRules(): List<ReplaceRule> {
return titleReplaceRules + contentReplaceRules
}
fun getContent(
book: Book,
chapter: BookChapter,

View File

@@ -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()
}