Skip to content

Commit

Permalink
Fixed a problem with the auto launch setting not updating on first op…
Browse files Browse the repository at this point in the history
…ening.
  • Loading branch information
kylehowells committed Oct 9, 2014
1 parent c036a42 commit b99b987
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LIFX Menu/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,16 @@ -(void)updateAutoLaunch{
if ([self autoLaunch]) {
if (![loginController launchAtLogin]) {
[loginController setLaunchAtLogin:YES];
[autorunItem setState:NSOnState];
}

[autorunItem setState:NSOnState];
}
else {
if ([loginController launchAtLogin]) {
[loginController setLaunchAtLogin:NO];
[autorunItem setState:NSOffState];
}

[autorunItem setState:NSOffState];
}
}

Expand Down

0 comments on commit b99b987

Please sign in to comment.