SessionCtl // Bind alwaysExpandCandidateWindow().

This commit is contained in:
ShikiSuen 2023-08-30 23:38:32 +08:00
parent 7af6eb7cfb
commit 755026ded6
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ extension SessionCtl: CtlCandidateDelegate {
public var isCandidateState: Bool { state.isCandidateContainer }
public var shouldAutoExpandCandidates: Bool {
guard !PrefMgr.shared.alwaysExpandCandidateWindow else { return true }
guard state.type == .ofSymbolTable else { return state.type == .ofAssociates }
return state.node.previous != nil
}