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:
parent
85a55dbc2e
commit
9498b16d59
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Add table
Reference in a new issue