Show
Ignore:
Timestamp:
10/24/08 15:29:38 (3 months ago)
Author:
astrange
Message:

Make disabling automatic updates actually work.
Update Checker: Don't overwrite NextRunDate? if it's set to distantFuture.
PrefPane?: Revert r473

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/perian-1.1/Update Checker Sources/UpdateCheckerAppDelegate.m

    r950 r968  
    3535        NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; 
    3636        lastRunDate = [[defaults objectForKey:NEXT_RUN_KEY] retain]; 
    37          
    38         [defaults setObject:[NSDate dateWithTimeIntervalSinceNow:TIME_INTERVAL_TIL_NEXT_RUN] forKey:NEXT_RUN_KEY]; 
     37     
     38    if (![lastRunDate isEqualToDate:[NSDate distantFuture]]) { 
     39        [defaults setObject:[NSDate dateWithTimeIntervalSinceNow:TIME_INTERVAL_TIL_NEXT_RUN] forKey:NEXT_RUN_KEY]; 
     40    } 
     41     
    3942        manualRun = [defaults boolForKey:MANUAL_RUN_KEY]; 
    4043        [defaults removeObjectForKey:MANUAL_RUN_KEY];