mgrLM // Reload user phrases after in-place-add a phrase, if necessary.

This commit is contained in:
ShikiSuen 2022-02-16 20:51:37 +08:00
parent 61fadb5467
commit be30ee2793
1 changed files with 5 additions and 3 deletions

View File

@ -271,9 +271,11 @@ static void LTLoadLanguageModelFile(NSString *filenameWithoutExtension, vChewing
// We enforce the format consolidation here, since the pragma header will let the UserPhraseLM bypasses the consolidating process on load.
LMConsolidator::ConsolidateContent([path UTF8String], Preferences.shouldAutoSortUserPhrasesAndExclListOnLoad, false);
// We use FSEventStream to monitor the change of the user phrase folder,
// so we don't have to load data here.
// [self loadUserPhrases];
// We use FSEventStream to monitor the change of the user phrase folder,
// so we don't have to load data here unless FSEventStream is disabled by user.
if (!Preferences.shouldAutoReloadUserDataFiles) {
[self loadUserPhrases];
}
return YES;
}