mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +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
|
|
@ -507,6 +507,9 @@ MonitorSection::MonitorSection ()
|
|||
AudioEngine::instance()->PortConnectedOrDisconnected.connect (
|
||||
*this, invalidator (*this), boost::bind (&MonitorSection::port_connected_or_disconnected, this, _1, _3), gui_context ()
|
||||
);
|
||||
AudioEngine::instance()->PortPrettyNameChanged.connect (
|
||||
*this, invalidator (*this), boost::bind (&MonitorSection::port_pretty_name_changed, this, _1), gui_context ()
|
||||
);
|
||||
Config->ParameterChanged.connect (config_connection, invalidator (*this), boost::bind (&MonitorSection::parameter_changed, this, _1), gui_context());
|
||||
}
|
||||
|
||||
|
|
@ -1590,6 +1593,18 @@ MonitorSection::port_connected_or_disconnected (boost::weak_ptr<Port> wa, boost:
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
MonitorSection::port_pretty_name_changed (std::string pn)
|
||||
{
|
||||
if (!_route) {
|
||||
return;
|
||||
}
|
||||
if (_route->output()->connected_to (pn)) {
|
||||
update_output_display ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MonitorSection::load_bindings ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue