Update Ctrl-surface MIDI port list when ports change

This is a better variant of bbb6851468, directly using
the GUI context without indirection.
This commit is contained in:
Robin Gareus 2021-02-04 06:19:37 +01:00
parent ed5a9979ea
commit acfa04d700
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
23 changed files with 42 additions and 37 deletions

View file

@ -631,7 +631,6 @@ private:
boost::shared_ptr<ARDOUR::Stripable> master;
PBD::ScopedConnection port_reg_connection;
void port_registration_handler();
enum ConnectionState { InputConnected = 0x1, OutputConnected = 0x2 };
@ -640,7 +639,7 @@ private:
bool connection_handler(boost::weak_ptr<ARDOUR::Port>, std::string name1,
boost::weak_ptr<ARDOUR::Port>, std::string name2,
bool yn);
PBD::ScopedConnectionList port_connections;
PBD::ScopedConnection port_connection;
void connected();
/* GUI */