SessionCtl // Reorder contents of inputMode.didSet().

- See the updated comments for reasons.
This commit is contained in:
ShikiSuen 2022-11-30 00:09:10 +08:00
parent 5a2b93bbe2
commit 197b6d69fd
1 changed files with 2 additions and 2 deletions

View File

@ -109,6 +109,8 @@ public class SessionCtl: IMKInputController {
didSet {
if PrefMgr.shared.onlyLoadFactoryLangModelsIfNeeded { LMMgr.loadDataModel(inputMode) }
if oldValue != inputMode, inputMode != .imeModeNULL {
/// 調
resetInputHandler(forceComposerCleanup: true)
// ----------------------------
///
inputHandler?.currentLM = LMMgr.currentLM //
@ -117,8 +119,6 @@ public class SessionCtl: IMKInputController {
inputHandler?.ensureKeyboardParser()
///
syncBaseLMPrefs()
/// 調
resetInputHandler(forceComposerCleanup: true)
}
// deactivateServer() activateServer()
//