mirror of
https://github.com/transmission/transmission
synced 2025-03-12 15:14:12 +00:00
The outline view was apply its own styling. Instead, don't mark our groups as groups.
This commit is contained in:
parent
59c1c1e83b
commit
8a308cf9d9
1 changed files with 7 additions and 9 deletions
|
@ -123,8 +123,8 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175;
|
|||
NSMutableIndexSet* visibleIndexSet = [[NSMutableIndexSet alloc] init];
|
||||
|
||||
[fullIndexSet enumerateIndexesUsingBlock:^(NSUInteger row, BOOL*) {
|
||||
id rowView = [self rowViewAtRow:row makeIfNecessary:NO];
|
||||
if ([rowView isGroupRowStyle])
|
||||
id rowItem = [self itemAtRow:row];
|
||||
if ([rowItem isKindOfClass:[TorrentGroup class]])
|
||||
{
|
||||
[visibleIndexSet addIndex:row];
|
||||
}
|
||||
|
@ -149,8 +149,8 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175;
|
|||
//redraw fControlButton
|
||||
BOOL minimal = [self.fDefaults boolForKey:@"SmallView"];
|
||||
[rowIndexes enumerateIndexesUsingBlock:^(NSUInteger row, BOOL*) {
|
||||
id rowView = [self rowViewAtRow:row makeIfNecessary:NO];
|
||||
if (![rowView isGroupRowStyle])
|
||||
id rowItem = [self itemAtRow:row];
|
||||
if (![rowItem isKindOfClass:[TorrentGroup class]])
|
||||
{
|
||||
if (minimal)
|
||||
{
|
||||
|
@ -199,12 +199,10 @@ static NSTimeInterval const kToggleProgressSeconds = 0.175;
|
|||
|
||||
- (BOOL)outlineView:(NSOutlineView*)outlineView isGroupItem:(id)item
|
||||
{
|
||||
if ([item isKindOfClass:[Torrent class]])
|
||||
{
|
||||
// We are implementing our own group styling.
|
||||
// Apple's default group styling conflicts with this.
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (CGFloat)outlineView:(NSOutlineView*)outlineView heightOfRowByItem:(id)item
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue