Skip to content

Commit

Permalink
fix prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Dec 18, 2018
1 parent 4020738 commit da555eb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions atom/browser/api/atom_api_system_preferences_mac.mm
Expand Up @@ -379,11 +379,8 @@ AVMediaType ParseMediaType(const std::string& media_type) {
}

bool SystemPreferences::IsTrustedAccessibilityClient(bool prompt) {
NSDictionary* options;
if (prompt)
options = @{(id)kAXTrustedCheckOptionPrompt : @YES};
else
options = @{(id)kAXTrustedCheckOptionPrompt : @YES};
NSDictionary* options =
@{(id)kAXTrustedCheckOptionPrompt : (prompt ? @YES : @NO)};

return AXIsProcessTrustedWithOptions((CFDictionaryRef)options);
}
Expand Down

0 comments on commit da555eb

Please sign in to comment.