Changeset 5190


Ignore:
Timestamp:
Mar 4, 2008, 12:30:26 AM (14 years ago)
Author:
livings124
Message:

group tooltip displays number of transfers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r5170 r5190  
    229229        return [fDefaults boolForKey: @"DisplayGroupRowRatio"] ? NSLocalizedString(@"Ratio", "Torrent table -> group row -> tooltip")
    230230                : NSLocalizedString(@"Upload speed", "Torrent table -> group row -> tooltip");
     231    else if (ident)
     232    {
     233        int count = [[item objectForKey: @"Torrents"] count];
     234        if (count == 1)
     235            return NSLocalizedString(@"1 transfer", "Torrent table -> group row -> tooltip");
     236        else
     237            return [NSString stringWithFormat: NSLocalizedString(@"%d transfers", "Torrent table -> group row -> tooltip"), count];
     238    }
    231239    else
    232240        return nil;
Note: See TracChangeset for help on using the changeset viewer.