make possible to view info on the selected lexical model

This commit is contained in:
Randy Boring 2019-07-24 13:39:43 -04:00
parent 3508d4d45c
commit 69d7a02c5e

View file

@ -176,7 +176,7 @@ class LexicalModelPickerViewController: UITableViewController, UIAlertViewDelega
if Manager.shared.currentLexicalModelID == lm.fullID {
cell.selectionStyle = .blue
cell.isSelected = true
cell.accessoryType = .checkmark
cell.accessoryType = .detailDisclosureButton
} else {
cell.selectionStyle = .none
cell.isSelected = false
@ -388,8 +388,8 @@ class LexicalModelPickerViewController: UITableViewController, UIAlertViewDelega
}
private func scroll(toSelectedLexicalModel animated: Bool) {
let index = userLexicalModels.index { kb in
return Manager.shared.currentLexicalModelID == kb.fullID
let index = userLexicalModels.index { lm in
return Manager.shared.currentLexicalModelID == lm.fullID
}
if let index = index {