trigger_ui: selection rules prevent loading a slot from selection menu item

* the Slot *is* the Selection, you can't also have a Range or Region selected
* perhaps this will change someday
This commit is contained in:
Ben Loftis 2022-03-17 08:57:16 -05:00
parent c2243d8b1c
commit d32796d695

View File

@ -432,16 +432,7 @@ TriggerUI::context_menu ()
MenuList& items = _context_menu->items ();
_context_menu->set_name ("ArdourContextMenu");
Menu* load_menu = manage (new Menu);
MenuList& loitems (load_menu->items ());
loitems.push_back (MenuElem (_("from file"), sigc::bind(sigc::mem_fun (*this, (&TriggerUI::choose_sample)), true)));
loitems.push_back (MenuElem (_("from selection"), sigc::mem_fun (*this, &TriggerUI::set_from_selection)));
items.push_back (MenuElem (_("Load..."), *load_menu));
#if DOUBLE_CLICK_IS_NOT_OBVIOUS_ENOUGH
items.push_back (MenuElem (_("Edit..."), sigc::mem_fun (*this, &TriggerUI::edit_trigger)));
#endif
items.push_back (MenuElem (_("Load..."), sigc::bind(sigc::mem_fun (*this, (&TriggerUI::choose_sample)), true)));
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Color..."), sigc::mem_fun (*this, &TriggerUI::choose_color)));
items.push_back (SeparatorElem());