From c9c2ab90647b2dc9613815848f7ebd4ca3083443 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 4 Nov 2022 16:57:50 +0800 Subject: [PATCH] SessionCtl // Mitigate .ofEmpty() state on activateServer(). - We don't handle it. We set it. --- Source/Modules/SessionCtl_Core.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/SessionCtl_Core.swift b/Source/Modules/SessionCtl_Core.swift index 23a1462d..afd93794 100644 --- a/Source/Modules/SessionCtl_Core.swift +++ b/Source/Modules/SessionCtl_Core.swift @@ -203,7 +203,7 @@ extension SessionCtl { UpdateSputnik.shared.checkForUpdate(forced: false, url: kUpdateInfoSourceURL) } - switchState(IMEState.ofEmpty()) + state = IMEState.ofEmpty() isActivated = true // 登記啟用狀態。 Self.allInstances.insert(self) setKeyLayout()