UI: Fix macOS permissions availability check
Documentation appears to wrongly claim that this is available in 10.15, while in reality it's only 11+. This would lead to a crash on 10.15 since the symbol doesn't exist there.master
parent
9d68c8a848
commit
f8b31f6f90
|
@ -323,7 +323,7 @@ MacPermissionStatus CheckPermissionWithPrompt(MacPermissionType type,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case kScreenCapture: {
|
case kScreenCapture: {
|
||||||
if (@available(macOS 10.15, *)) {
|
if (@available(macOS 11.0, *)) {
|
||||||
permissionResponse = (CGPreflightScreenCaptureAccess()
|
permissionResponse = (CGPreflightScreenCaptureAccess()
|
||||||
? kPermissionAuthorized
|
? kPermissionAuthorized
|
||||||
: kPermissionDenied);
|
: kPermissionDenied);
|
||||||
|
|
Loading…
Reference in New Issue