mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
add a placeholder magnet link icon
This commit is contained in:
parent
565d87f8c4
commit
ab4ffba987
1 changed files with 4 additions and 0 deletions
|
@ -555,6 +555,10 @@ int trashDataFile(const char * filename)
|
|||
|
||||
- (NSImage *) icon
|
||||
{
|
||||
if ([self isMagnet])
|
||||
return [NSImage imageNamed: NSImageNameNetwork]; //placeholder
|
||||
|
||||
#warning replace 'fldr' stuff with NSImageNameFolder on 10.6
|
||||
if (!fIcon)
|
||||
fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: [self isFolder] ? NSFileTypeForHFSTypeCode('fldr')
|
||||
: [[self name] pathExtension]] retain];
|
||||
|
|
Loading…
Reference in a new issue