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)
/// IMK
ctlCandidateCurrent.delegate = nil
let candidateLayout: NSUserInterfaceLayoutOrientation =
((isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList)
? .vertical

View File

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