Added opposite action of 'Group all sources'

Mixer action ungroupAll expands all SessionGroupSources.
This commit is contained in:
Bruno Herbelin
2022-05-24 21:30:54 +02:00
parent ed7d42cf6d
commit 3c0b2c64e1
3 changed files with 19 additions and 4 deletions

View File

@@ -989,7 +989,10 @@ void UserInterface::showMenuFile()
// switch pannel to show first source (created)
navigator.showPannelSource(0);
}
// TODO : FLATTEN (import all sources from all groups)
if (ImGuiToolkit::MenuItemIcon(7, 2, "Expand all groups", false, Mixer::manager().numSource() > 0)) {
// create a new group session with all sources
Mixer::manager().ungroupAll();
}
// HELP AND QUIT
ImGui::Separator();