mgrLM // Reload user phrases after in-place-add a phrase, if necessary.
This commit is contained in:
parent
fcb80b1167
commit
35794b1376
|
@ -272,8 +272,10 @@ static void LTLoadLanguageModelFile(NSString *filenameWithoutExtension, vChewing
|
||||||
LMConsolidator::ConsolidateContent([path UTF8String], Preferences.shouldAutoSortUserPhrasesAndExclListOnLoad, false);
|
LMConsolidator::ConsolidateContent([path UTF8String], Preferences.shouldAutoSortUserPhrasesAndExclListOnLoad, false);
|
||||||
|
|
||||||
// We use FSEventStream to monitor the change of the user phrase folder,
|
// We use FSEventStream to monitor the change of the user phrase folder,
|
||||||
// so we don't have to load data here.
|
// so we don't have to load data here unless FSEventStream is disabled by user.
|
||||||
// [self loadUserPhrases];
|
if (!Preferences.shouldAutoReloadUserDataFiles) {
|
||||||
|
[self loadUserPhrases];
|
||||||
|
}
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue