mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
Tooltips display if peer is from incoming or outgoing connection.
This commit is contained in:
parent
85a55dbc2e
commit
9498b16d59
2 changed files with 4 additions and 0 deletions
|
@ -510,6 +510,9 @@
|
|||
else
|
||||
return [file objectForKey: @"Name"];
|
||||
}
|
||||
else if (tableView == fPeerTable)
|
||||
return [NSString stringWithFormat: @"From %@ connection",
|
||||
[[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue] ? @"incoming" : @"outgoing"];
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
|
|
@ -625,6 +625,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
peer = peers[i];
|
||||
[peerDics addObject: [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[NSNumber numberWithBool: peer.isConnected], @"Connected",
|
||||
[NSNumber numberWithBool: peer.isIncoming], @"Incoming",
|
||||
[NSString stringWithCString: (char *) peer.addr encoding: NSUTF8StringEncoding], @"IP",
|
||||
[NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding], @"Client",
|
||||
[NSNumber numberWithBool: peer.isDownloading], @"UL To",
|
||||
|
|
Loading…
Add table
Reference in a new issue