13
0

Show VCA pane when a new VCA is created.

This commit is contained in:
Robin Gareus 2019-03-01 19:02:38 +01:00
parent 9a8464ff40
commit 9c1801fedb
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 8 additions and 0 deletions

View File

@ -483,6 +483,12 @@ Mixer_UI::masters_scroller_button_release (GdkEventButton* ev)
return false;
}
void
Mixer_UI::new_masters_created ()
{
ActionManager::get_toggle_action ("Mixer", "ToggleVCAPane")->set_active (true);
}
void
Mixer_UI::add_masters (VCAList& vlist)
{
@ -1059,6 +1065,7 @@ Mixer_UI::set_session (Session* sess)
_session->StateSaved.connect (_session_connections, invalidator (*this), boost::bind (&Mixer_UI::update_title, this), gui_context());
_session->vca_manager().VCAAdded.connect (_session_connections, invalidator (*this), boost::bind (&Mixer_UI::add_masters, this, _1), gui_context());
_session->vca_manager().VCACreated.connect (_session_connections, invalidator (*this), boost::bind (&Mixer_UI::new_masters_created, this), gui_context());
Config->ParameterChanged.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::parameter_changed, this, _1), gui_context ());

View File

@ -209,6 +209,7 @@ private:
void add_masters (ARDOUR::VCAList&);
void remove_master (VCAMasterStrip*);
void new_masters_created ();
MixerStrip* strip_by_route (boost::shared_ptr<ARDOUR::Route>) const;
MixerStrip* strip_by_stripable (boost::shared_ptr<ARDOUR::Stripable>) const;