From 970174117e2b5df4a1eb2213fc9593e4e323ebfb Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Mon, 10 Oct 2022 15:00:05 +0800 Subject: [PATCH] SessionCtl // Remove unnecessary nil setters for ctlCandidateCurrent. --- Source/Modules/SessionCtl_HandleDisplay.swift | 1 - Source/Modules/SessionCtl_HandleStates.swift | 1 - 2 files changed, 2 deletions(-) diff --git a/Source/Modules/SessionCtl_HandleDisplay.swift b/Source/Modules/SessionCtl_HandleDisplay.swift index f1766a1f..26ac2106 100644 --- a/Source/Modules/SessionCtl_HandleDisplay.swift +++ b/Source/Modules/SessionCtl_HandleDisplay.swift @@ -74,7 +74,6 @@ extension SessionCtl { state.isVerticalCandidateWindow = (isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList) /// 無論是田所選字窗還是 IMK 選字窗,在這裡都有必要重新初期化。 - ctlCandidateCurrent.delegate = nil let candidateLayout: NSUserInterfaceLayoutOrientation = ((isVerticalTyping || !PrefMgr.shared.useHorizontalCandidateList) ? .vertical diff --git a/Source/Modules/SessionCtl_HandleStates.swift b/Source/Modules/SessionCtl_HandleStates.swift index 5d59a82b..289cfc3a 100644 --- a/Source/Modules/SessionCtl_HandleStates.swift +++ b/Source/Modules/SessionCtl_HandleStates.swift @@ -26,7 +26,6 @@ extension SessionCtl { state = newState switch state.type { case .ofDeactivated: - ctlCandidateCurrent.delegate = nil ctlCandidateCurrent.visible = false popupCompositionBuffer.hide() tooltipInstance.hide()