Changeset 1066 for trunk/macosx


Ignore:
Timestamp:
Nov 10, 2006, 5:04:44 AM (15 years ago)
Author:
livings124
Message:

tooltip shows peer's percent when over progress bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1065 r1066  
    558558    else if (tableView == fPeerTable)
    559559    {
    560         if ([[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue])
    561             return NSLocalizedString(@"From incoming connection", "Inspector -> Peers tab -> table row tooltip");
    562         else
    563             return NSLocalizedString(@"From outgoing connection", "Inspector -> Peers tab -> table row tooltip");
     560        if ([[column identifier] isEqualToString: @"Progress"])
     561            return [NSString stringWithFormat: @"%.1f%%", [[[fPeers objectAtIndex: row]
     562                                                objectForKey: @"Progress"] floatValue] * 100.0];
     563        else
     564        {
     565            if ([[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue])
     566                return NSLocalizedString(@"From incoming connection", "Inspector -> Peers tab -> table row tooltip");
     567            else
     568                return NSLocalizedString(@"From outgoing connection", "Inspector -> Peers tab -> table row tooltip");
     569        }
    564570    }
    565571    else
Note: See TracChangeset for help on using the changeset viewer.