From c3281902b14843809c20a450fc2b31825a3e17b8 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 7 Mar 2022 21:36:59 +0800 Subject: [PATCH] ctlIME // Move CNSLM and SymbolLM toggling to Prefs. --- Source/Modules/IMEModules/ctlInputMethod.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Modules/IMEModules/ctlInputMethod.swift b/Source/Modules/IMEModules/ctlInputMethod.swift index b445ddd2..e020b95e 100644 --- a/Source/Modules/IMEModules/ctlInputMethod.swift +++ b/Source/Modules/IMEModules/ctlInputMethod.swift @@ -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?) {