KeyHandler // Always sync & apply LM enabled status when should.
This commit is contained in:
parent
be1c934eff
commit
cd904f5e1f
|
@ -116,6 +116,9 @@ static NSString *const kGraphVizOutputfile = @"/tmp/vChewing-visualization.dot";
|
|||
|
||||
// Synchronize the Preference Setting "setPhraseReplacementEnabled" to the new LM.
|
||||
newLanguageModel->setPhraseReplacementEnabled(Preferences.phraseReplacementEnabled);
|
||||
// Also other sub language models:
|
||||
newLanguageModel->setSymbolEnabled(Preferences.symbolInputEnabled);
|
||||
newLanguageModel->setCNSEnabled(Preferences.cns11643Enabled);
|
||||
|
||||
// Only apply the changes if the value is changed
|
||||
if (![_inputMode isEqualToString:newInputMode]) {
|
||||
|
|
Loading…
Reference in New Issue