Changed Group ALL sources action to Group ACTIVE sources

Manage mixing groups and clones on the way. This makes the action more flexible for the user, allowing to group only a selection.
This commit is contained in:
Bruno Herbelin
2022-07-06 23:34:36 +02:00
parent 93cb12be89
commit d77371912b
7 changed files with 53 additions and 15 deletions

View File

@@ -45,6 +45,17 @@ SourceList playable_only (const SourceList &list)
return pl;
}
bool notactive (const Source *s) { return !s->active(); }
SourceList active_only (const SourceList &list)
{
SourceList pl = list;
pl.remove_if(notactive);
return pl;
}
SourceList depth_sorted(const SourceList &list)
{
SourceList sl = list;