mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 22:37:43 +00:00
set the preferred lexical model to the one the user selects
This commit is contained in:
parent
eaa7c89cbf
commit
b6748c84af
1 changed files with 3 additions and 1 deletions
|
|
@ -289,7 +289,9 @@ class LexicalModelPickerViewController: UITableViewController, UIAlertViewDelega
|
|||
|
||||
private func switchLexicalModel(_ index: Int) {
|
||||
// Switch lexicalModel and register to user defaults.
|
||||
if Manager.shared.registerLexicalModel(userLexicalModels[index]) {
|
||||
let lm = userLexicalModels[index]
|
||||
if Manager.shared.registerLexicalModel(lm) {
|
||||
Storage.active.userDefaults.set(preferredLexicalModelID: lm.id, forKey: lm.languageID)
|
||||
tableView.reloadData()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue