mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Subscribe to pretty-port name changes (GUI)
This commit is contained in:
parent
21e66216be
commit
b2c4e71a45
13 changed files with 75 additions and 4 deletions
|
|
@ -260,6 +260,9 @@ PluginPinWidget::PluginPinWidget (boost::shared_ptr<ARDOUR::PluginInsert> pi)
|
|||
AudioEngine::instance ()->PortConnectedOrDisconnected.connect (
|
||||
_io_connection, invalidator (*this), boost::bind (&PluginPinWidget::port_connected_or_disconnected, this, _1, _3), gui_context ()
|
||||
);
|
||||
AudioEngine::instance ()->PortPrettyNameChanged.connect (
|
||||
_io_connection, invalidator (*this), boost::bind (&PluginPinWidget::port_pretty_name_changed, this, _1), gui_context ()
|
||||
);
|
||||
}
|
||||
|
||||
PluginPinWidget::~PluginPinWidget ()
|
||||
|
|
@ -1906,6 +1909,15 @@ PluginPinWidget::port_connected_or_disconnected (boost::weak_ptr<ARDOUR::Port> w
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginPinWidget::port_pretty_name_changed (std::string pn)
|
||||
{
|
||||
boost::shared_ptr<IO> io = _pi->sidechain_input ();
|
||||
if (io && io->connected_to (pn)) {
|
||||
queue_idle_update ();
|
||||
}
|
||||
}
|
||||
|
||||
/* lifted from ProcessorEntry::Control */
|
||||
PluginPinWidget::Control::Control (boost::shared_ptr<AutomationControl> c, string const & n)
|
||||
: _control (c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue