SessionCtl // Don't read client accent if the OS accent is customized.
This commit is contained in:
parent
274534b0f2
commit
c45772b90c
|
@ -87,9 +87,8 @@ extension SessionCtl: CtlCandidateDelegate {
|
||||||
nullResponse = nullResponse || PrefMgr.shared.chineseConversionEnabled
|
nullResponse = nullResponse || PrefMgr.shared.chineseConversionEnabled
|
||||||
guard !nullResponse else { return nil }
|
guard !nullResponse else { return nil }
|
||||||
let fallbackValue = NSColor.accentColor
|
let fallbackValue = NSColor.accentColor
|
||||||
if #unavailable(macOS 10.14) {
|
guard !NSApp.isAccentColorCustomized else { return fallbackValue }
|
||||||
return fallbackValue
|
if #unavailable(macOS 10.14) { return fallbackValue }
|
||||||
}
|
|
||||||
// 此處因為沒有對 client() 的強引用,所以不會耽誤很多時間。
|
// 此處因為沒有對 client() 的強引用,所以不會耽誤很多時間。
|
||||||
let urls = NSRunningApplication.runningApplications(
|
let urls = NSRunningApplication.runningApplications(
|
||||||
withBundleIdentifier: client()?.bundleIdentifier() ?? ""
|
withBundleIdentifier: client()?.bundleIdentifier() ?? ""
|
||||||
|
|
Loading…
Reference in New Issue