Skip to content

Commit 1c59038

Browse files
committed
Change macos.permission.RECORD_SCREEN version check from 10.15 to 11.0.
1 parent 1f7630f commit 1c59038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/macos/os_macos.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
}
105105

106106
bool OS_MacOS::request_permission(const String &p_name) {
107-
if (@available(macOS 10.15, *)) {
107+
if (@available(macOS 11.0, *)) {
108108
if (p_name == "macos.permission.RECORD_SCREEN") {
109109
if (CGPreflightScreenCaptureAccess()) {
110110
return true;
@@ -124,7 +124,7 @@
124124
Vector<String> OS_MacOS::get_granted_permissions() const {
125125
Vector<String> ret;
126126

127-
if (@available(macOS 10.15, *)) {
127+
if (@available(macOS 11.0, *)) {
128128
if (CGPreflightScreenCaptureAccess()) {
129129
ret.push_back("macos.permission.RECORD_SCREEN");
130130
}

0 commit comments

Comments
 (0)