pull/2477/head
kunfei 2 years ago
parent efe8a1b6df
commit 167c73a526
  1. 3
      app/src/main/java/io/legado/app/ui/book/toc/rule/TxtTocRuleViewModel.kt

@ -15,9 +15,6 @@ class TxtTocRuleViewModel(app: Application) : BaseViewModel(app) {
fun save(txtTocRule: TxtTocRule) { fun save(txtTocRule: TxtTocRule) {
execute { execute {
if (txtTocRule.serialNumber < 0) {
txtTocRule.serialNumber = appDb.txtTocRuleDao.maxOrder + 1
}
appDb.txtTocRuleDao.insert(txtTocRule) appDb.txtTocRuleDao.insert(txtTocRule)
} }
} }

Loading…
Cancel
Save