Explorar o código

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.
gxalpha %!s(int64=3) %!d(string=hai) anos
pai
achega
f8b31f6f90
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UI/platform-osx.mm

+ 1 - 1
UI/platform-osx.mm

@@ -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);