ctlPrefWindow // Format tweaks & remove useless expressions.

This commit is contained in:
ShikiSuen 2022-03-15 21:09:10 +08:00
parent 15ac5bba6f
commit 38a2f7e487
1 changed files with 18 additions and 20 deletions

View File

@ -216,6 +216,7 @@ extension RangeReplaceableCollection where Element: Hashable {
do { do {
try Preferences.validate(candidateKeys: keys) try Preferences.validate(candidateKeys: keys)
Preferences.candidateKeys = keys Preferences.candidateKeys = keys
selectionKeyComboBox.stringValue = Preferences.candidateKeys
} }
catch Preferences.CandidateKeyError.empty { catch Preferences.CandidateKeyError.empty {
selectionKeyComboBox.stringValue = Preferences.candidateKeys selectionKeyComboBox.stringValue = Preferences.candidateKeys
@ -229,9 +230,6 @@ extension RangeReplaceableCollection where Element: Hashable {
clsSFX.beep() clsSFX.beep()
} }
} }
selectionKeyComboBox.stringValue = keys
Preferences.candidateKeys = keys
} }
} }