Fix build on Xcode 13.3.

This commit is contained in:
Damiano Galassi committed 2022-02-24 10:18:24 +01:00
1 parent 9519f87ae9
commit ce456c1b32
1 file changed
+1 -1
+1 -1
View File
@@ -38,7 +38,7 @@ func automationConsent(bundleIdentifier: String, promptIfNeeded: Bool) -> Privac
let appleScriptPermission = AEDeterminePermissionToAutomateTarget(&addressDesc, typeWildCard, typeWildCard, promptIfNeeded)
AEDisposeDesc(&addressDesc)
switch appleScriptPermission {
case -1744: //errAEEventWouldRequireUserConsent:
case -1744://Int32(errAEEventWouldRequireUserConsent):
result = .unknown
case noErr:
result = .granted