PrefWindow // Disable Voltaire-related settings.

This commit is contained in:
ShikiSuen 2022-09-28 22:09:13 +08:00
parent d531f04fa9
commit 738ecc0a8f
1 changed files with 4 additions and 2 deletions

View File

@ -135,6 +135,7 @@ class ctlPrefWindow: NSWindowController {
} }
selectionKeyComboBox.stringValue = candidateSelectionKeys selectionKeyComboBox.stringValue = candidateSelectionKeys
selectionKeyComboBox.isEnabled = false // IMKCandidates
} }
// CNS // CNS
@ -281,8 +282,9 @@ extension ctlPrefWindow: NSToolbarDelegate {
} }
var toolbarIdentifiers: [NSToolbarItem.Identifier] { var toolbarIdentifiers: [NSToolbarItem.Identifier] {
if #unavailable(macOS 10.13) { return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard] } // if #unavailable(macOS 10.13) { return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard] }
return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard, .ofDevZone] // return [.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard, .ofDevZone]
[.ofGeneral, .ofExperience, .ofDictionary, .ofKeyboard]
} }
func toolbarDefaultItemIdentifiers(_: NSToolbar) -> [NSToolbarItem.Identifier] { func toolbarDefaultItemIdentifiers(_: NSToolbar) -> [NSToolbarItem.Identifier] {