Skip to content

Commit b99b987

Browse files
committed
Fixed a problem with the auto launch setting not updating on first opening.
1 parent c036a42 commit b99b987

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

LIFX Menu/AppDelegate.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,16 @@ -(void)updateAutoLaunch{
236236
if ([self autoLaunch]) {
237237
if (![loginController launchAtLogin]) {
238238
[loginController setLaunchAtLogin:YES];
239-
[autorunItem setState:NSOnState];
240239
}
240+
241+
[autorunItem setState:NSOnState];
241242
}
242243
else {
243244
if ([loginController launchAtLogin]) {
244245
[loginController setLaunchAtLogin:NO];
245-
[autorunItem setState:NSOffState];
246246
}
247+
248+
[autorunItem setState:NSOffState];
247249
}
248250
}
249251

0 commit comments

Comments
 (0)