mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
might as well dump a bunch of small changes/optimizations I have sitting locally
This commit is contained in:
@@ -44,10 +44,10 @@
|
||||
NSString * path = [value stringByExpandingTildeInPath];
|
||||
NSImage * icon;
|
||||
//show a folder icon if the folder doesn't exist
|
||||
if (![[NSFileManager defaultManager] fileExistsAtPath: path] && [[path pathExtension] isEqualToString: @""])
|
||||
if ([[path pathExtension] isEqualToString: @""] && ![[NSFileManager defaultManager] fileExistsAtPath: path])
|
||||
icon = [[NSWorkspace sharedWorkspace] iconForFileType: NSFileTypeForHFSTypeCode('fldr')];
|
||||
else
|
||||
icon = [[NSWorkspace sharedWorkspace] iconForFile: [value stringByExpandingTildeInPath]];
|
||||
icon = [[NSWorkspace sharedWorkspace] iconForFile: path];
|
||||
|
||||
[icon setSize: NSMakeSize(16.0, 16.0)];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user