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:
parent
5b0332ea4b
commit
cf1e916cc0
2 changed files with 2 additions and 3 deletions
|
@ -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"])
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue