13
0

Add option to toggle TriggerBox PI

This does not show/hide the Triggerbox in the Mixer itself,
it only sets the presentation-info flag (to be used on the Trigger Page).
This commit is contained in:
Robin Gareus 2021-12-01 05:30:20 +01:00
parent 3b5dbf2252
commit 229a8aea13
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1141,6 +1141,15 @@ MixerStrip::build_route_ops_menu ()
items.push_back (SeparatorElem());
}
if (active && is_track() && _route->triggerbox ()) {
bool tt = _route->presentation_info ().trigger_track ();
items.push_back (CheckMenuElem (_("TriggerBox")));
Gtk::CheckMenuItem* i = dynamic_cast<Gtk::CheckMenuItem *> (&items.back());
i->set_active (tt);
i->signal_activate().connect (sigc::bind (sigc::mem_fun (_route->presentation_info (), &PresentationInfo::set_trigger_track), !tt));
items.push_back (SeparatorElem());
}
if (active && is_track()) {
Gtk::Menu* dio_menu = new Menu;
MenuList& dio_items = dio_menu->items();