Pref // Bind Options to IMController.

- At this moment we let the IME always automatically load the changes. Fingerprint-based conditioning will be implemented later.
This commit is contained in:
ShikiSuen 2022-01-29 21:44:31 +08:00
parent e68d02833d
commit 8ea5265bd1
1 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,11 @@ static double FindHighestScore(const vector<NodeAnchor>& 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;