1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

store folder icons for now

This commit is contained in:
Mitchell Livingston 2007-03-05 02:46:48 +00:00
parent 5b0332ea4b
commit cf1e916cc0
2 changed files with 2 additions and 3 deletions

View file

@ -715,9 +715,7 @@
if (!item) if (!item)
return; return;
NSImage * icon = [[item objectForKey: @"IsFolder"] boolValue] ? [[fTorrents objectAtIndex: 0] icon] [cell setImage: [item objectForKey: @"Icon"]];
: [item objectForKey: @"Icon"];
[cell setImage: icon];
} }
else if ([[tableColumn identifier] isEqualToString: @"Check"]) else if ([[tableColumn identifier] isEqualToString: @"Check"])
{ {

View file

@ -1334,6 +1334,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
{ {
[dict setObject: [NSMutableArray array] forKey: @"Children"]; [dict setObject: [NSMutableArray array] forKey: @"Children"];
[dict setObject: [NSNumber numberWithInt: 1] forKey: @"Remaining"]; [dict setObject: [NSNumber numberWithInt: 1] forKey: @"Remaining"];
[dict setObject: [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')] forKey: @"Icon"];
} }
else else
{ {