From f8b31f6f90c635c7a62dc34b369438ad1d42ff39 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Wed, 27 Jul 2022 19:55:09 +0200 Subject: [PATCH] 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. --- UI/platform-osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/platform-osx.mm b/UI/platform-osx.mm index 0294af97d..c0a86de6b 100644 --- a/UI/platform-osx.mm +++ b/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);