mirror of https://github.com/mpv-player/mpv
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:
parent
3ad9c32a5f
commit
5d7f0edfeb
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue