mirror of
https://github.com/transmission/transmission
synced 2024-12-24 08:43:27 +00:00
show "X" image for "no group" row
This commit is contained in:
parent
d9f8018c49
commit
4d4b4c1c36
1 changed files with 7 additions and 1 deletions
|
@ -2486,7 +2486,13 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
: NSLocalizedString(@"No Group", "Group table row");
|
: NSLocalizedString(@"No Group", "Group table row");
|
||||||
}
|
}
|
||||||
else if ([ident isEqualToString: @"Color"])
|
else if ([ident isEqualToString: @"Color"])
|
||||||
return [[GroupsWindowController groups] imageForIndex: [[item objectForKey: @"Group"] intValue] isSmall: YES];
|
{
|
||||||
|
int group = [[item objectForKey: @"Group"] intValue];
|
||||||
|
if (group == -1)
|
||||||
|
return [NSImage imageNamed: NSImageNameStopProgressTemplate];
|
||||||
|
else
|
||||||
|
return [[GroupsWindowController groups] imageForIndex: group isSmall: YES];
|
||||||
|
}
|
||||||
else if ([ident isEqualToString: @"UL Image"])
|
else if ([ident isEqualToString: @"UL Image"])
|
||||||
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
|
return [NSImage imageNamed: @"UpArrowGroupTemplate.png"];
|
||||||
else if ([ident isEqualToString: @"DL Image"])
|
else if ([ident isEqualToString: @"DL Image"])
|
||||||
|
|
Loading…
Reference in a new issue