SessionCtl // Don't read client accent if the OS accent is customized.

This commit is contained in:
ShikiSuen 2023-11-30 09:49:23 +08:00
parent 274534b0f2
commit c45772b90c
1 changed files with 2 additions and 3 deletions

View File

@ -87,9 +87,8 @@ extension SessionCtl: CtlCandidateDelegate {
nullResponse = nullResponse || PrefMgr.shared.chineseConversionEnabled
guard !nullResponse else { return nil }
let fallbackValue = NSColor.accentColor
if #unavailable(macOS 10.14) {
return fallbackValue
}
guard !NSApp.isAccentColorCustomized else { return fallbackValue }
if #unavailable(macOS 10.14) { return fallbackValue }
// client()
let urls = NSRunningApplication.runningApplications(
withBundleIdentifier: client()?.bundleIdentifier() ?? ""