Changeset 9595


Ignore:
Timestamp:
Nov 27, 2009, 3:20:19 AM (11 years ago)
Author:
livings124
Message:

display progress of retrieving metadata on a magnetized transfer

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r9587 r9595  
    947947    }
    948948   
     949    #warning show add window perhaps?
     950   
    949951    #warning should we do this?
    950952    [torrent setWaitToStart: [fDefaults boolForKey: @"AutoStartDownload"]];
     953   
     954    #warning should set group
    951955   
    952956    [torrent update];
  • trunk/macosx/Info.plist

    r9587 r9595  
    5252                        <array>
    5353                                <string>magnet</string>
    54                                 <string>dht</string>
    5554                        </array>
    5655                        <key>CFBundleURLName</key>
  • trunk/macosx/Torrent.m

    r9587 r9595  
    810810- (BOOL) allDownloaded
    811811{
    812     return [self sizeLeft] == 0;
     812    return [self sizeLeft] == 0 && ![self isMagnet];
    813813}
    814814
     
    910910{
    911911    if ([self isMagnet])
     912    {
     913        NSString * progressString = [NSString localizedStringWithFormat: @"%.2f%% of torrent metadata retrieved",
     914                                        fStat->metadataPercentComplete];
    912915        return [NSString stringWithFormat: @"%@ - %@", NSLocalizedString(@"Magnetized transfer", "Torrent -> progress string"),
    913                                             NSLocalizedString(@"torrent information needed", "Torrent -> progress string")];
     916                                            progressString];
     917    }
    914918   
    915919    NSString * string;
  • trunk/macosx/TorrentCell.m

    r9590 r9595  
    630630    }
    631631   
    632     if (![torrent allDownloaded] && ![torrent isMagnet])
     632    if (![torrent allDownloaded])
    633633    {
    634634        const CGFloat widthRemaining = round(NSWidth(barRect) * [torrent progressLeft]);
Note: See TracChangeset for help on using the changeset viewer.