SessionCtl // Remove unnecessary nil setters for ctlCandidateCurrent.

This commit is contained in:
ShikiSuen 2022-10-10 15:00:05 +08:00
parent 072ecdf907
commit 970174117e
2 changed files with 0 additions and 2 deletions

View File

@ -74,7 +74,6 @@ extension SessionCtl {
state.isVerticalCandidateWindow = (isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList) state.isVerticalCandidateWindow = (isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList)
/// IMK /// IMK
ctlCandidateCurrent.delegate = nil
let candidateLayout: NSUserInterfaceLayoutOrientation = let candidateLayout: NSUserInterfaceLayoutOrientation =
((isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList) ((isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList)
? .vertical ? .vertical

View File

@ -26,7 +26,6 @@ extension SessionCtl {
state = newState state = newState
switch state.type { switch state.type {
case .ofDeactivated: case .ofDeactivated:
ctlCandidateCurrent.delegate = nil
ctlCandidateCurrent.visible = false ctlCandidateCurrent.visible = false
popupCompositionBuffer.hide() popupCompositionBuffer.hide()
tooltipInstance.hide() tooltipInstance.hide()