cocoa-cb: fix auto-selection of title bar style with older SDKs

returning a nil value only works when build with a +10.14 SDK otherwise
we need to fallback to the old mechanism.
This commit is contained in:
der richter 2020-02-08 11:00:55 +01:00
parent 3ad9c32a5f
commit 5d7f0edfeb
1 changed files with 4 additions and 0 deletions

View File

@ -199,7 +199,11 @@ class TitleBar: NSVisualEffectView {
return NSAppearance(named: .accessibilityHighContrastVibrantDark)
case "0", "auto": fallthrough
default:
#if HAVE_MACOS_10_14_FEATURES
return nil
#else
break
#endif
}
}