ctlIME // Move CNSLM and SymbolLM toggling to Prefs.

This commit is contained in:
ShikiSuen 2022-03-07 21:36:59 +08:00
parent 4c5ca5f13c
commit 0b7cfffb96
1 changed files with 2 additions and 4 deletions

View File

@ -263,13 +263,11 @@ class ctlInputMethod: IMKInputController {
}
@objc func toggleCNS11643Enabled(_ sender: Any?) {
mgrLangModel.setCNSEnabled(Preferences.toggleCNS11643Enabled())
NotifierController.notify(message: String(format: "%@%@%@", NSLocalizedString("CNS11643 Mode", comment: ""), "\n", Preferences.cns11643Enabled ? NSLocalizedString("NotificationSwitchON", comment: "") : NSLocalizedString("NotificationSwitchOFF", comment: "")))
NotifierController.notify(message: String(format: "%@%@%@", NSLocalizedString("CNS11643 Mode", comment: ""), "\n", Preferences.toggleCNS11643Enabled() ? NSLocalizedString("NotificationSwitchON", comment: "") : NSLocalizedString("NotificationSwitchOFF", comment: "")))
}
@objc func toggleSymbolEnabled(_ sender: Any?) {
mgrLangModel.setSymbolEnabled(Preferences.toggleSymbolInputEnabled())
NotifierController.notify(message: String(format: "%@%@%@", NSLocalizedString("Symbol & Emoji Input", comment: ""), "\n", Preferences.symbolInputEnabled ? NSLocalizedString("NotificationSwitchON", comment: "") : NSLocalizedString("NotificationSwitchOFF", comment: "")))
NotifierController.notify(message: String(format: "%@%@%@", NSLocalizedString("Symbol & Emoji Input", comment: ""), "\n", Preferences.toggleSymbolInputEnabled() ? NSLocalizedString("NotificationSwitchON", comment: "") : NSLocalizedString("NotificationSwitchOFF", comment: "")))
}
@objc func toggleAssociatedPhrasesEnabled(_ sender: Any?) {