From 8ea5265bd1e6afc9901a1ebd2dabfc57942b067f Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 29 Jan 2022 21:44:31 +0800 Subject: [PATCH] Pref // Bind Options to IMController. - At this moment we let the IME always automatically load the changes. Fingerprint-based conditioning will be implemented later. --- Source/InputMethodController.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 2c711495..d9dbe91e 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -190,6 +190,11 @@ static double FindHighestScore(const vector& nodes, double epsilon) NSString *basisKeyboardLayoutID = Preferences.basisKeyboardLayout; [client overrideKeyboardWithKeyboardNamed:basisKeyboardLayoutID]; + // Load UserPhrases // 這裡今後需要改造成「驗證檔案指紋、根據驗證結果判定是否需要重新讀入」的形式。 + if (Preferences.shouldAutoReloadUserDataFiles) { + [self reloadUserPhrases:(id)nil]; + } + // reset the state _currentDeferredClient = nil; _currentCandidateClient = nil;