Ignore:
Timestamp:
Aug 15, 2008, 1:44:46 AM (13 years ago)
Author:
livings124
Message:

initial Sparkle 1.5 b5 commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r6496 r6529  
    4242#define RPC_IP_REMOVE_TAG   1
    4343
    44 #define UPDATE_SECONDS 86400
    45 
    4644#define TOOLBAR_GENERAL     @"TOOLBAR_GENERAL"
    4745#define TOOLBAR_TRANSFERS   @"TOOLBAR_TRANSFERS"
     
    102100        }
    103101       
    104         //set check for update to right value
    105         [self setCheckForUpdate: nil];
    106        
    107102        //set auto import
    108103        NSString * autoPath;
     
    236231    [fRPCPasswordField setStringValue: [NSString stringWithUTF8String: rpcPassword]];
    237232    tr_free(rpcPassword);
    238 }
    239 
    240 - (void) setUpdater: (SUUpdater *) updater
    241 {
    242     fUpdater = updater;
    243233}
    244234
     
    578568- (void) resetWarnings: (id) sender
    579569{
    580     [fDefaults setBool: YES forKey: @"WarningDuplicate"];
    581     [fDefaults setBool: YES forKey: @"WarningRemainingSpace"];
    582     [fDefaults setBool: YES forKey: @"WarningFolderDataSameName"];
    583     [fDefaults setBool: YES forKey: @"WarningResetStats"];
    584     [fDefaults setBool: YES forKey: @"WarningCreatorBlankAddress"];
    585     [fDefaults setBool: YES forKey: @"WarningRemoveBuiltInTracker"];
    586     [fDefaults setBool: YES forKey: @"WarningInvalidOpen"];
    587 }
    588 
    589 - (void) setCheckForUpdate: (id) sender
    590 {
    591     NSTimeInterval seconds = [fDefaults boolForKey: @"CheckForUpdates"] ? UPDATE_SECONDS : 0;
    592     [fDefaults setInteger: seconds forKey: @"SUScheduledCheckInterval"];
    593     if (fUpdater)
    594         [fUpdater scheduleCheckWithInterval: seconds];
     570    [fDefaults removeObjectForKey: @"WarningDuplicate"];
     571    [fDefaults removeObjectForKey: @"WarningRemainingSpace"];
     572    [fDefaults removeObjectForKey: @"WarningFolderDataSameName"];
     573    [fDefaults removeObjectForKey: @"WarningResetStats"];
     574    [fDefaults removeObjectForKey: @"WarningCreatorBlankAddress"];
     575    [fDefaults removeObjectForKey: @"WarningRemoveBuiltInTracker"];
     576    [fDefaults removeObjectForKey: @"WarningInvalidOpen"];
    595577}
    596578
Note: See TracChangeset for help on using the changeset viewer.