feat: 优化

pull/209/head
kunfei 5 years ago
parent cb1cfe5fed
commit ea74a093fb
  1. 5
      app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceViewModel.kt

@ -167,7 +167,10 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio
fun disableSource(sourceUrl: String) {
execute {
App.db.bookSourceDao().getBookSource(sourceUrl)?.let { source ->
source.enabled = false
App.db.bookSourceDao().update(source)
}
}
}

Loading…
Cancel
Save