Trigger Cues: implement Stop button (gtk part)

This commit is contained in:
Ben Loftis 2021-12-12 11:32:38 -06:00
parent e7569eabe7
commit 3e5606415f
3 changed files with 4 additions and 2 deletions

View File

@ -360,7 +360,7 @@ CueMaster::event_handler (GdkEvent* ev)
switch (ev->type) {
case GDK_BUTTON_PRESS:
if (ev->button.button == 1) {
//TriggerBox::StopAllTriggers ();
_session->stop_all_triggers();
return true;
}
break;

View File

@ -81,7 +81,7 @@ class TriggerMaster : public ArdourCanvas::Rectangle
};
class CueMaster : public ArdourCanvas::Rectangle
class CueMaster : public ArdourCanvas::Rectangle, public ARDOUR::SessionHandlePtr
{
public:
CueMaster (ArdourCanvas::Item* canvas);

View File

@ -218,6 +218,8 @@ TriggerPage::set_session (Session* s)
return;
}
_master.set_session(s);
XMLNode* node = ARDOUR_UI::instance ()->trigger_page_settings ();
set_state (*node, Stateful::loading_state_version);