SessionCtl // Bind legacyCandidateViewTypesettingMethodEnabled.

This commit is contained in:
ShikiSuen 2023-02-22 14:21:28 +08:00
parent 777870a1d3
commit 95b53ac082
1 changed files with 6 additions and 0 deletions

View File

@ -134,6 +134,12 @@ public extension SessionCtl {
}
}
if #available(macOS 10.15, *) {
if let ctlCandidateCurrent = candidateUI as? CtlCandidateTDK {
ctlCandidateCurrent.isLegacyMode = PrefMgr.shared.legacyCandidateViewTypesettingMethodEnabled
}
}
candidateUI?.delegate = self //
candidateUI?.visible = true