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:
parent
e907f7a370
commit
a04dac16d8
3 changed files with 4 additions and 3 deletions
BIN
macosx/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/InfoWindow.nib/keyedobjects.nib
generated
Binary file not shown.
|
@ -30,7 +30,7 @@
|
|||
{
|
||||
NSArray * fTorrents;
|
||||
NSMutableArray * fPeers, * fFiles;
|
||||
NSImage * fAppIcon, * fDotGreen, * fDotRed;
|
||||
NSImage * fAppIcon, * fDotGreen, * fDotRed, * fCheckImage;
|
||||
|
||||
IBOutlet NSTabView * fTabView;
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
fAppIcon = [[NSApp applicationIconImage] copy];
|
||||
fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
|
||||
fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
|
||||
fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
|
||||
|
||||
fTorrents = [[NSArray alloc] init];
|
||||
fPeers = [[NSMutableArray alloc] initWithCapacity: 6];
|
||||
|
@ -452,9 +453,9 @@
|
|||
if ([ident isEqualToString: @"Connected"])
|
||||
return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
|
||||
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"])
|
||||
return [[peer objectForKey: @"DL From"] boolValue] ? @"Y" : @"";
|
||||
return [[peer objectForKey: @"DL From"] boolValue] ? fCheckImage : nil;
|
||||
else if ([ident isEqualToString: @"Client"])
|
||||
return [peer objectForKey: @"Client"];
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue