ctlIME // Add guard-let to client() in clientBundleIdentifier().
This commit is contained in:
parent
beb4d52503
commit
0d6a5f4a8d
|
@ -13,7 +13,10 @@ import Cocoa
|
||||||
// MARK: - KeyHandler Delegate
|
// MARK: - KeyHandler Delegate
|
||||||
|
|
||||||
extension ctlInputMethod: KeyHandlerDelegate {
|
extension ctlInputMethod: KeyHandlerDelegate {
|
||||||
var clientBundleIdentifier: String { client()?.bundleIdentifier() ?? "" }
|
var clientBundleIdentifier: String {
|
||||||
|
guard let client = client() else { return "" }
|
||||||
|
return client.bundleIdentifier() ?? ""
|
||||||
|
}
|
||||||
|
|
||||||
func ctlCandidate() -> ctlCandidateProtocol { ctlInputMethod.ctlCandidateCurrent }
|
func ctlCandidate() -> ctlCandidateProtocol { ctlInputMethod.ctlCandidateCurrent }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue