Changeset 5437


Ignore:
Timestamp:
Mar 29, 2008, 11:55:10 PM (14 years ago)
Author:
livings124
Message:

show progress while downloading the blocklist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/BlocklistDownloader.m

    r5435 r5437  
    8181   
    8282    #warning factor for unknown size, combine 2 strings - make a single private method
    83     [fTextField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"Downloading blocklist (%d%%)", "Blocklist -> message"),
    84                                     100 * (fCurrentSize / fExpectedSize)]];
    85     [fProgressBar setDoubleValue: fCurrentSize / fExpectedSize];
     83    [fTextField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"Downloading blocklist (%.1f%%)",
     84        "Blocklist -> message"), 100.0 * ((double)fCurrentSize / fExpectedSize)]];
     85    [fProgressBar setDoubleValue: (double)fCurrentSize / fExpectedSize];
    8686}
    8787
     
    120120   
    121121    [fPrefsController updateBlocklistFields];
    122    
     122
     123    #warning update sheet to show 100%
    123124    [NSApp endSheet: fStatusWindow];
    124125    [fStatusWindow orderOut: self];
Note: See TracChangeset for help on using the changeset viewer.