Skip to content

Commit

Permalink
Add accessibility settings check
Browse files Browse the repository at this point in the history
The AXAPIEnabled method was deprecated in OS X 10.9 (Mavericks).
However, it is necessary here so it can check if the accessibility
settings in OS X 10.8 (Mountain Lion) are enabled. Otherwise, it would
keep asking the user to enable them even when they are enabled.
  • Loading branch information
Gunga committed May 1, 2015
1 parent 282f1cc commit 729c570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShiftIt/ShiftItAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ - (void)checkAuthorization {
}

}
} else {
} else if (!AXAPIEnabled()){
// OSX <= 10.8
NSAlert *alert = [NSAlert alertWithMessageText:NSLocalizedString(@"Authorization Required", nil)
defaultButton:NSLocalizedString(@"Quit", nil)
Expand Down

0 comments on commit 729c570

Please sign in to comment.