Skip to content

Commit

Permalink
Improving readability.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Weiß committed Feb 16, 2014
1 parent e043f9c commit d3f3b4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LLManager.m
Expand Up @@ -45,10 +45,12 @@ + (void)setLaunchAtLogin:(BOOL)value {
+ (void)setLaunchAtLogin:(BOOL)value
notifyOnFailure:(BOOL)wantFailureNotification {
#if __has_feature(objc_arc)
if(!SMLoginItemSetEnabled((__bridge CFStringRef)LLHelperBundleIdentifier, value)){
CFStringRef LLHelperBundleIdentifierCF = (__bridge CFStringRef)LLHelperBundleIdentifier;
#else
if(!SMLoginItemSetEnabled((CFStringRef)LLHelperBundleIdentifier, value)){
CFStringRef LLHelperBundleIdentifierCF = (CFStringRef)LLHelperBundleIdentifier;
#endif

if(!SMLoginItemSetEnabled(LLHelperBundleIdentifierCF, value)){
if(wantFailureNotification){
[[NSNotificationCenter defaultCenter] postNotificationName:LLManagerSetLaunchAtLoginFailedNotification object:self];
}
Expand Down

0 comments on commit d3f3b4c

Please sign in to comment.