mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
path tooltip only under the name column
This commit is contained in:
parent
cf9ccc6c73
commit
1a8d2103f6
1 changed files with 5 additions and 2 deletions
|
@ -763,12 +763,15 @@
|
|||
- (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect
|
||||
tableColumn: (NSTableColumn *) tableColumn item: (id) item mouseLocation: (NSPoint) mouseLocation
|
||||
{
|
||||
if ([[tableColumn identifier] isEqualToString: @"Size"])
|
||||
NSString * ident = [tableColumn identifier];
|
||||
if ([ident isEqualToString: @"Size"])
|
||||
return ![[item objectForKey: @"IsFolder"] boolValue]
|
||||
? [[[item objectForKey: @"Size"] stringValue] stringByAppendingString: NSLocalizedString(@" bytes",
|
||||
"Inspector -> Files tab -> table row tooltip")] : nil;
|
||||
else
|
||||
else if ([ident isEqualToString: @"Name"])
|
||||
return [[[fTorrents objectAtIndex: 0] downloadFolder] stringByAppendingPathComponent: [item objectForKey: @"Path"]];
|
||||
else
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSArray *) peerSortDescriptors
|
||||
|
|
Loading…
Reference in a new issue