Ignore:
Timestamp:
Oct 1, 2007, 4:23:00 PM (15 years ago)
Author:
livings124
Message:

add known peers field to the inspector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r3252 r3259  
    216216        [fRatioField setStringValue: @""];
    217217       
     218        [fSwarmSpeedField setStringValue: @""];
     219        [fErrorMessageView setString: @""];
     220        [fErrorMessageView setSelectable: NO];
     221       
     222        [fConnectedPeersField setStringValue: NSLocalizedString(@"info not available", "Inspector -> Peers tab -> peers")];
     223        [fDownloadingFromField setStringValue: @""];
     224        [fUploadingToField setStringValue: @""];
     225        [fKnownField setStringValue: @""];
    218226        [fSeedersField setStringValue: @""];
    219227        [fLeechersField setStringValue: @""];
    220228        [fCompletedFromTrackerField setStringValue: @""];
    221         [fConnectedPeersField setStringValue: NSLocalizedString(@"info not available", "Inspector -> Peers tab -> peers")];
    222         [fDownloadingFromField setStringValue: @""];
    223         [fUploadingToField setStringValue: @""];
    224         [fSwarmSpeedField setStringValue: @""];
    225         [fErrorMessageView setString: @""];
    226         [fErrorMessageView setSelectable: NO];
    227229       
    228230        [fDateAddedField setStringValue: @""];
     
    469471    [fDownloadingFromField setStringValue: active ? [NSString stringWithFormat: @"%d", [torrent peersSendingToUs]] : @""];
    470472    [fUploadingToField setStringValue: active ? [NSString stringWithFormat: @"%d", [torrent peersGettingFromUs]] : @""];
     473    [fKnownField setIntValue: [torrent totalPeersKnown]];
    471474   
    472475    [fPeers release];
Note: See TracChangeset for help on using the changeset viewer.