Uncommenting the login item stuff from the PreferencesController.
authorJoseph Spiros <joseph.spiros@ithinksw.com>
Mon, 24 May 2004 15:22:28 +0000 (15:22 +0000)
committerJoseph Spiros <joseph.spiros@ithinksw.com>
Mon, 24 May 2004 15:22:28 +0000 (15:22 +0000)
PreferencesController.m

index c2767c2..4773ab8 100755 (executable)
@@ -210,7 +210,7 @@ static PreferencesController *prefs = nil;
 {
     ITDebugLog(@"Changing general setting of tag %i.", [sender tag]);
     if ( [sender tag] == 1010) {
 {
     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) {
     } 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];
     
     
     [df synchronize];
     
-    /*if (ITDoesApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath])) {
+    if (ITDoesApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath])) {
         [[StatusWindowController sharedController] showSetupQueryWindow];
         [[StatusWindowController sharedController] showSetupQueryWindow];
-    }*/
+    }
 }
 
 - (void)autoLaunchOK
 }
 
 - (void)autoLaunchOK
@@ -571,7 +571,7 @@ static PreferencesController *prefs = nil;
     [[StatusWindow sharedWindow] vanish:self];
     [[StatusWindow sharedWindow] setIgnoresMouseEvents:YES];
     
     [[StatusWindow sharedWindow] vanish:self];
     [[StatusWindow sharedWindow] setIgnoresMouseEvents:YES];
     
-    //ITSetApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath], YES);
+    ITSetApplicationLaunchOnLogin([[NSBundle mainBundle] bundlePath], YES);
 }
 
 - (void)autoLaunchCancel
 }
 
 - (void)autoLaunchCancel
@@ -796,9 +796,9 @@ static PreferencesController *prefs = nil;
     
     // Set the launch at login checkbox state
     ITDebugLog(@"Setting launch at login state.");
     
     // 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];
         [launchAtLoginCheckbox setState:NSOnState];
-    }*/
+    }
     
     // Set the launch player checkbox state
     ITDebugLog(@"Setting launch player with MenuTunes state.");
     
     // Set the launch player checkbox state
     ITDebugLog(@"Setting launch player with MenuTunes state.");