TXT初始化目录时不应启用已关闭的规则

pull/1578/head
fisher 3 years ago
parent 1192654d43
commit ce2ed7cd06
  1. 2
      app/src/main/java/io/legado/app/model/localBook/TextFile.kt

@ -307,7 +307,7 @@ class TextFile(private val book: Book) {
*/ */
private fun getTocRule(content: String): Pattern? { private fun getTocRule(content: String): Pattern? {
tocRules.addAll(getTocRules(content, getTocRules().reversed())) tocRules.addAll(getTocRules(content, getTocRules().reversed()))
tocRules.addAll(getTocRules(content, appDb.txtTocRuleDao.disabled.reversed())) //tocRules.addAll(getTocRules(content, appDb.txtTocRuleDao.disabled.reversed()))
return tocRules.firstOrNull() return tocRules.firstOrNull()
} }

Loading…
Cancel
Save