1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-03 10:15:45 +00:00

Show checks instead of y's for DL and UL columns.

This commit is contained in:
Mitchell Livingston 2006-08-15 02:36:21 +00:00
parent e907f7a370
commit a04dac16d8
3 changed files with 4 additions and 3 deletions

View file

@ -30,7 +30,7 @@
{ {
NSArray * fTorrents; NSArray * fTorrents;
NSMutableArray * fPeers, * fFiles; NSMutableArray * fPeers, * fFiles;
NSImage * fAppIcon, * fDotGreen, * fDotRed; NSImage * fAppIcon, * fDotGreen, * fDotRed, * fCheckImage;
IBOutlet NSTabView * fTabView; IBOutlet NSTabView * fTabView;

View file

@ -58,6 +58,7 @@
fAppIcon = [[NSApp applicationIconImage] copy]; fAppIcon = [[NSApp applicationIconImage] copy];
fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"]; fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
fDotRed = [NSImage imageNamed: @"RedDot.tiff"]; fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
fTorrents = [[NSArray alloc] init]; fTorrents = [[NSArray alloc] init];
fPeers = [[NSMutableArray alloc] initWithCapacity: 6]; fPeers = [[NSMutableArray alloc] initWithCapacity: 6];
@ -452,9 +453,9 @@
if ([ident isEqualToString: @"Connected"]) if ([ident isEqualToString: @"Connected"])
return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed; return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
else if ([ident isEqualToString: @"UL To"]) else if ([ident isEqualToString: @"UL To"])
return [[peer objectForKey: @"UL To"] boolValue] ? @"Y" : @""; return [[peer objectForKey: @"UL To"] boolValue] ? fCheckImage : nil;
else if ([ident isEqualToString: @"DL From"]) else if ([ident isEqualToString: @"DL From"])
return [[peer objectForKey: @"DL From"] boolValue] ? @"Y" : @""; return [[peer objectForKey: @"DL From"] boolValue] ? fCheckImage : nil;
else if ([ident isEqualToString: @"Client"]) else if ([ident isEqualToString: @"Client"])
return [peer objectForKey: @"Client"]; return [peer objectForKey: @"Client"];
else else