mirror of
https://github.com/transmission/transmission
synced 2025-03-11 06:32:59 +00:00
when turning on group view, show all groups expanded
This commit is contained in:
parent
346060659d
commit
5e2308daf9
3 changed files with 14 additions and 2 deletions
|
@ -1167,7 +1167,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
enumerator = [torrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
{
|
||||
//expand the group, since either the whole group is being removed or it is already expanded
|
||||
//expand the group, since either the whole group is being removed, it is already expanded, or not showing groups
|
||||
[fTableView removeCollapsedGroup: [torrent groupValue]];
|
||||
|
||||
if (deleteData)
|
||||
|
@ -1664,7 +1664,13 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
|
||||
- (void) setSortByGroup: (id) sender
|
||||
{
|
||||
[fDefaults setBool: ![fDefaults boolForKey: @"SortByGroup"] forKey: @"SortByGroup"];
|
||||
BOOL sortByGroup = ![fDefaults boolForKey: @"SortByGroup"];
|
||||
[fDefaults setBool: sortByGroup forKey: @"SortByGroup"];
|
||||
|
||||
//expand all groups
|
||||
if (sortByGroup)
|
||||
[fTableView removeAllCollapsedGroups];
|
||||
|
||||
[self applyFilter: nil];
|
||||
}
|
||||
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
|
||||
- (NSIndexSet *) collapsedGroupsIndexes;
|
||||
- (void) removeCollapsedGroup: (int) value;
|
||||
- (void) removeAllCollapsedGroups;
|
||||
|
||||
- (void) removeButtonTrackingAreas;
|
||||
- (void) setControlButtonHover: (int) row;
|
||||
|
|
|
@ -103,6 +103,11 @@
|
|||
[fCollapsedGroups removeIndex: value];
|
||||
}
|
||||
|
||||
- (void) removeAllCollapsedGroups
|
||||
{
|
||||
[fCollapsedGroups removeAllIndexes];
|
||||
}
|
||||
|
||||
- (BOOL) outlineView: (NSOutlineView *) outlineView isGroupItem: (id) item
|
||||
{
|
||||
return ![item isKindOfClass: [Torrent class]];
|
||||
|
|
Loading…
Add table
Reference in a new issue