13
0

L: remove Group context-menu items that reference VCA or subgroups

This commit is contained in:
Ben Loftis 2024-05-22 20:16:16 -05:00
parent 86c9118a0f
commit 17d6e724ab

View File

@ -337,6 +337,7 @@ GroupTabs::add_new_from_items (Menu_Helpers::MenuList& items)
}
items.push_back (MenuElem (_("Create New Group From..."), *new_from));
#ifndef LIVETRAX
new_from = manage (new Menu);
{
MenuList& f = new_from->items ();
@ -345,6 +346,8 @@ GroupTabs::add_new_from_items (Menu_Helpers::MenuList& items)
f.push_back (MenuElem (_("Soloed..."), sigc::bind (sigc::mem_fun (*this, &GroupTabs::new_from_soloed), true)));
}
items.push_back (MenuElem (_("Create New Group with Master From..."), *new_from));
#endif
}
Gtk::Menu*
@ -375,6 +378,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
items.push_back (MenuElem (_("Collect Group"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::collect), g)));
items.push_back (MenuElem (_("Remove Group"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::remove_group), g)));
#ifndef LIVETRAX
items.push_back (SeparatorElem());
if (g->has_control_master()) {
@ -403,6 +407,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
items.back().set_sensitive (g->can_subgroup (true, PostFader));
}
#endif
items.push_back (SeparatorElem());
}
@ -415,6 +420,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
add_new_from_items (items);
}
#ifndef LIVETRAX
items.push_back (SeparatorElem());
vca_menu = manage (new Menu);
@ -449,6 +455,7 @@ GroupTabs::get_menu (RouteGroup* g, bool in_tab_area)
}
items.push_back (MenuElem (_("Assign Soloed to VCA..."), *vca_menu));
#endif
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Enable All Groups"), sigc::mem_fun(*this, &GroupTabs::activate_all)));