tooltip shows peer's percent when over progress bar
This commit is contained in:
parent
5f3434788a
commit
b076a34ab8
|
@ -556,12 +556,18 @@
|
|||
return [file objectForKey: @"Name"];
|
||||
}
|
||||
else if (tableView == fPeerTable)
|
||||
{
|
||||
if ([[column identifier] isEqualToString: @"Progress"])
|
||||
return [NSString stringWithFormat: @"%.1f%%", [[[fPeers objectAtIndex: row]
|
||||
objectForKey: @"Progress"] floatValue] * 100.0];
|
||||
else
|
||||
{
|
||||
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…
Reference in New Issue