Ignore:
Timestamp:
Mar 10, 2012, 1:59:44 PM (10 years ago)
Author:
livings124
Message:

replace a method with GCD calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BlocklistDownloaderViewController.m

    r13249 r13250  
    3838@implementation BlocklistDownloaderViewController
    3939
    40 #warning make gcd singleton?
    41 BlocklistDownloaderViewController * fDLViewController = nil;
     40BlocklistDownloaderViewController * fBLViewController = nil;
    4241+ (void) downloadWithPrefsController: (PrefsController *) prefsController
    4342{
    44     if (!fDLViewController)
     43    if (!fBLViewController)
    4544    {
    46         fDLViewController = [[BlocklistDownloaderViewController alloc] initWithPrefsController: prefsController];
    47         [fDLViewController startDownload];
     45        fBLViewController = [[BlocklistDownloaderViewController alloc] initWithPrefsController: prefsController];
     46        [fBLViewController startDownload];
    4847    }
    4948}
     
    107106    [fStatusWindow orderOut: self];
    108107   
    109     fDLViewController = nil;
     108    fBLViewController = nil;
    110109}
    111110
     
    155154    [[alert window] orderOut: self];
    156155   
    157     fDLViewController = nil;
     156    fBLViewController = nil;
    158157}
    159158
Note: See TracChangeset for help on using the changeset viewer.