From: Joseph Spiros Date: Mon, 24 May 2004 15:22:28 +0000 (+0000) Subject: Uncommenting the login item stuff from the PreferencesController. X-Git-Tag: v1.3~4 X-Git-Url: http://git.ithinksw.org/MenuTunes.git/commitdiff_plain/159225ffd2b8b3122aa6da4be41e44aa97b5898a Uncommenting the login item stuff from the PreferencesController. --- diff --git a/PreferencesController.m b/PreferencesController.m index c2767c2..4773ab8 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -210,7 +210,7 @@ static PreferencesController *prefs = nil; { ITDebugLog(@"Changing general setting of tag %i.", [sender tag]); if ( [sender tag] == 1010) { - //ITSetApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath], SENDER_STATE); + ITSetApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath], SENDER_STATE); } else if ( [sender tag] == 1020) { [df setBool:SENDER_STATE forKey:@"LaunchPlayerWithMT"]; } else if ( [sender tag] == 1030) { @@ -560,9 +560,9 @@ static PreferencesController *prefs = nil; [df synchronize]; - /*if (ITDoesApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath])) { + if (ITDoesApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath])) { [[StatusWindowController sharedController] showSetupQueryWindow]; - }*/ + } } - (void)autoLaunchOK @@ -571,7 +571,7 @@ static PreferencesController *prefs = nil; [[StatusWindow sharedWindow] vanish:self]; [[StatusWindow sharedWindow] setIgnoresMouseEvents:YES]; - //ITSetApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath], YES); + ITSetApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath], YES); } - (void)autoLaunchCancel @@ -796,9 +796,9 @@ static PreferencesController *prefs = nil; // Set the launch at login checkbox state ITDebugLog(@"Setting launch at login state."); - /*if (ITDoesApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath])) { + if (ITDoesApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath])) { [launchAtLoginCheckbox setState:NSOnState]; - }*/ + } // Set the launch player checkbox state ITDebugLog(@"Setting launch player with MenuTunes state.");