浏览代码

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 3 年之前
父节点
当前提交
f8b31f6f90
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);