pull/2282/head
kunfei 2 years ago
parent 0d9bf328e9
commit 56763dcc24
  1. 2
      app/src/main/java/io/legado/app/ui/book/source/edit/BookSourceEditActivity.kt

@ -92,7 +92,7 @@ class BookSourceEditActivity :
}
override fun onMenuOpened(featureId: Int, menu: Menu): Boolean {
menu.findItem(R.id.menu_login)?.isVisible = !viewModel.bookSource?.loginUrl.isNullOrBlank()
menu.findItem(R.id.menu_login)?.isVisible = !getSource().loginUrl.isNullOrBlank()
menu.findItem(R.id.menu_auto_complete)?.isChecked = viewModel.autoComplete
return super.onMenuOpened(featureId, menu)
}

Loading…
Cancel
Save