Subscribe to pretty-port name changes (GUI)

This commit is contained in:
Robin Gareus 2021-01-13 19:04:44 +01:00
parent 21e66216be
commit b2c4e71a45
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
13 changed files with 75 additions and 4 deletions

View file

@ -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 ()
{