From 3153ddf42bc44d59a01e29f9f02390aef269afa3 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 7 Mar 2022 21:36:22 +0800 Subject: [PATCH] ctlIME // Move PhraseRep toggling to Prefs. --- Source/Modules/IMEModules/ctlInputMethod.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/IMEModules/ctlInputMethod.swift b/Source/Modules/IMEModules/ctlInputMethod.swift index 6eae7fd3..b445ddd2 100644 --- a/Source/Modules/IMEModules/ctlInputMethod.swift +++ b/Source/Modules/IMEModules/ctlInputMethod.swift @@ -281,7 +281,7 @@ class ctlInputMethod: IMKInputController { } @objc func togglePhraseReplacement(_ sender: Any?) { - mgrLangModel.setPhraseReplacementEnabled(Preferences.togglePhraseReplacementEnabled()) + NotifierController.notify(message: String(format: "%@%@%@", NSLocalizedString("Use Phrase Replacement", comment: ""), "\n", Preferences.togglePhraseReplacementEnabled() ? NSLocalizedString("NotificationSwitchON", comment: "") : NSLocalizedString("NotificationSwitchOFF", comment: ""))) } @objc func selfTerminate(_ sender: Any?) {