1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-09 21:54:09 +00:00

Tooltips display if peer is from incoming or outgoing connection.

This commit is contained in:
Mitchell Livingston 2006-10-06 03:38:31 +00:00
parent 85a55dbc2e
commit 9498b16d59
2 changed files with 4 additions and 0 deletions

View file

@ -510,6 +510,9 @@
else else
return [file objectForKey: @"Name"]; return [file objectForKey: @"Name"];
} }
else if (tableView == fPeerTable)
return [NSString stringWithFormat: @"From %@ connection",
[[[fPeers objectAtIndex: row] objectForKey: @"Incoming"] boolValue] ? @"incoming" : @"outgoing"];
else else
return nil; return nil;
} }

View file

@ -625,6 +625,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
peer = peers[i]; peer = peers[i];
[peerDics addObject: [NSDictionary dictionaryWithObjectsAndKeys: [peerDics addObject: [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithBool: peer.isConnected], @"Connected", [NSNumber numberWithBool: peer.isConnected], @"Connected",
[NSNumber numberWithBool: peer.isIncoming], @"Incoming",
[NSString stringWithCString: (char *) peer.addr encoding: NSUTF8StringEncoding], @"IP", [NSString stringWithCString: (char *) peer.addr encoding: NSUTF8StringEncoding], @"IP",
[NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding], @"Client", [NSString stringWithCString: (char *) peer.client encoding: NSUTF8StringEncoding], @"Client",
[NSNumber numberWithBool: peer.isDownloading], @"UL To", [NSNumber numberWithBool: peer.isDownloading], @"UL To",