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 fcb80b1167
commit 35794b1376
1 changed files with 5 additions and 3 deletions

View File

@ -272,8 +272,10 @@ static void LTLoadLanguageModelFile(NSString *filenameWithoutExtension, vChewing
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];
// so we don't have to load data here unless FSEventStream is disabled by user.
if (!Preferences.shouldAutoReloadUserDataFiles) {
[self loadUserPhrases];
}
return YES;
}