Skip to content

Commit c74d338

Browse files
committed
fix: ensure all location enums are caught
1 parent b8b87d8 commit c74d338

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

permissions.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool HasOpenSystemPreferencesDialog() {
118118

119119
// Returns a status indicating whether the user has authorized Bluetooth access.
120120
std::string BluetoothAuthStatus() {
121-
if (@available(macOS 10.15.0, *)) {
121+
if (@available(macOS 10.15, *)) {
122122
switch ([CBCentralManager authorization]) {
123123
case CBManagerAuthorizationAllowedAlways:
124124
return kAuthorized;
@@ -270,6 +270,7 @@ bool HasOpenSystemPreferencesDialog() {
270270
// access.
271271
std::string LocationAuthStatus() {
272272
switch ([CLLocationManager authorizationStatus]) {
273+
case kCLAuthorizationStatusAuthorized:
273274
case kCLAuthorizationStatusAuthorizedAlways:
274275
return kAuthorized;
275276
case kCLAuthorizationStatusDenied:

0 commit comments

Comments
 (0)