Changeset 1526


Ignore:
Timestamp:
Mar 5, 2007, 2:31:20 AM (15 years ago)
Author:
livings124
Message:

store file list icons to increase speed under the file tab

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1520 r1526  
    716716            return;
    717717       
    718         NSImage * icon = [[NSWorkspace sharedWorkspace] iconForFileType: ![[item objectForKey: @"IsFolder"] boolValue]
    719                             ? [[item objectForKey: @"Name"] pathExtension] : NSFileTypeForHFSTypeCode('fldr')];
     718        NSImage * icon = [[item objectForKey: @"IsFolder"] boolValue] ? [[fTorrents objectAtIndex: 0] icon]
     719                                                                        : [item objectForKey: @"Icon"];
    720720        [cell setImage: icon];
    721721    }
  • trunk/macosx/Torrent.m

    r1522 r1526  
    13401340            [flatList addObject: dict];
    13411341            [dict setObject: [NSNumber numberWithUnsignedLongLong: size] forKey: @"Size"];
     1342            [dict setObject: [[NSWorkspace sharedWorkspace] iconForFileType: [name pathExtension]] forKey: @"Icon"];
    13421343        }
    13431344       
Note: See TracChangeset for help on using the changeset viewer.