mirror of
https://github.com/transmission/transmission
synced 2025-03-15 16:29:34 +00:00
tooltip shows peer's percent when over progress bar
This commit is contained in:
parent
5f3434788a
commit
b076a34ab8
1 changed files with 9 additions and 3 deletions
|
@ -557,10 +557,16 @@
|
|||
}
|
||||
else if (tableView == fPeerTable)
|
||||
{
|
||||
if ([[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue])
|
||||
return NSLocalizedString(@"From incoming connection", "Inspector -> Peers tab -> table row tooltip");
|
||||
if ([[column identifier] isEqualToString: @"Progress"])
|
||||
return [NSString stringWithFormat: @"%.1f%%", [[[fPeers objectAtIndex: row]
|
||||
objectForKey: @"Progress"] floatValue] * 100.0];
|
||||
else
|
||||
return NSLocalizedString(@"From outgoing connection", "Inspector -> Peers tab -> table row tooltip");
|
||||
{
|
||||
if ([[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue])
|
||||
return NSLocalizedString(@"From incoming connection", "Inspector -> Peers tab -> table row tooltip");
|
||||
else
|
||||
return NSLocalizedString(@"From outgoing connection", "Inspector -> Peers tab -> table row tooltip");
|
||||
}
|
||||
}
|
||||
else
|
||||
return nil;
|
||||
|
|
Loading…
Add table
Reference in a new issue