mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
store folder icons for now
This commit is contained in:
parent
5b0332ea4b
commit
cf1e916cc0
2 changed files with 2 additions and 3 deletions
|
@ -715,9 +715,7 @@
|
|||
if (!item)
|
||||
return;
|
||||
|
||||
NSImage * icon = [[item objectForKey: @"IsFolder"] boolValue] ? [[fTorrents objectAtIndex: 0] icon]
|
||||
: [item objectForKey: @"Icon"];
|
||||
[cell setImage: icon];
|
||||
[cell setImage: [item objectForKey: @"Icon"]];
|
||||
}
|
||||
else if ([[tableColumn identifier] isEqualToString: @"Check"])
|
||||
{
|
||||
|
|
|
@ -1334,6 +1334,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
{
|
||||
[dict setObject: [NSMutableArray array] forKey: @"Children"];
|
||||
[dict setObject: [NSNumber numberWithInt: 1] forKey: @"Remaining"];
|
||||
[dict setObject: [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')] forKey: @"Icon"];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue