Changeset 6668


Ignore:
Timestamp:
Aug 31, 2008, 8:05:46 PM (13 years ago)
Author:
livings124
Message:

some cleanup of the blocklist code, and store the date of the last blocklist update

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BlocklistDownloader.m

    r6667 r6668  
    9292}
    9393
    94 #warning release?
    9594- (void) download: (NSURLDownload *) download didFailWithError: (NSError *) error
    9695{
     
    148147    [fViewController setFinished];
    149148   
    150     #warning update date
     149    [[NSUserDefaults standardUserDefaults] setObject: [NSDate date] forKey: @"BlocklistLastUpdate"];
     150   
    151151    [[NSNotificationCenter defaultCenter] postNotificationName: @"BlocklistUpdated" object: nil];
    152152   
  • trunk/macosx/BlocklistDownloaderViewController.m

    r6667 r6668  
    2727#import "PrefsController.h"
    2828#import "NSStringAdditions.h"
    29 #import "NSApplicationAdditions.h"
    3029
    3130@interface BlocklistDownloaderViewController (Private)
     
    8382    }
    8483    else
    85         string = [string stringByAppendingFormat: @" (%@)",  [NSString stringForFileSize: expectedSize]];
     84        string = [string stringByAppendingFormat: @" (%@)",  [NSString stringForFileSize: currentSize]];
    8685   
    8786    [fTextField setStringValue: string];
     
    109108- (void) setFailed: (NSString *) error
    110109{
    111     #warning remove?
    112     //[fProgressBar setHidden: YES];
    113    
    114110    [NSApp endSheet: fStatusWindow];
    115111    [fStatusWindow orderOut: self];
Note: See TracChangeset for help on using the changeset viewer.