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
gxalpha 2022-07-27 19:55:09 +02:00
parent 9d68c8a848
commit f8b31f6f90
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ MacPermissionStatus CheckPermissionWithPrompt(MacPermissionType type,
break;
}
case kScreenCapture: {
if (@available(macOS 10.15, *)) {
if (@available(macOS 11.0, *)) {
permissionResponse = (CGPreflightScreenCaptureAccess()
? kPermissionAuthorized
: kPermissionDenied);