SessionCtl // Use newer resetInputHandler() in setValue().

This commit is contained in:
ShikiSuen 2022-11-13 18:34:08 +08:00
parent ef06f7d039
commit d3fc057409
1 changed files with 1 additions and 2 deletions

View File

@ -110,7 +110,6 @@ public class SessionCtl: IMKInputController {
didSet { didSet {
if PrefMgr.shared.onlyLoadFactoryLangModelsIfNeeded { LMMgr.loadDataModel(inputMode) } if PrefMgr.shared.onlyLoadFactoryLangModelsIfNeeded { LMMgr.loadDataModel(inputMode) }
if oldValue != inputMode, inputMode != .imeModeNULL { if oldValue != inputMode, inputMode != .imeModeNULL {
inputHandler.clear() // handle State.Empty()
// ---------------------------- // ----------------------------
/// ///
inputHandler.currentLM = LMMgr.currentLM // inputHandler.currentLM = LMMgr.currentLM //
@ -120,7 +119,7 @@ public class SessionCtl: IMKInputController {
/// ///
syncBaseLMPrefs() syncBaseLMPrefs()
/// 調 /// 調
resetInputHandler() resetInputHandler(forceComposerCleanup: true)
} }
} }
} }