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

@ -162,8 +162,9 @@ LCXLGUI::LCXLGUI (LaunchControlXL& p)
/* catch future changes to connection state */
ARDOUR::AudioEngine::instance()->PortRegisteredOrUnregistered.connect (port_reg_connection, invalidator (*this), boost::bind (&LCXLGUI::connection_handler, this), gui_context());
lcxl.ConnectionChange.connect (connection_change_connection, invalidator (*this), boost::bind (&LCXLGUI::connection_handler, this), gui_context());
ARDOUR::AudioEngine::instance()->PortRegisteredOrUnregistered.connect (_port_connections, invalidator (*this), boost::bind (&LCXLGUI::connection_handler, this), gui_context());
ARDOUR::AudioEngine::instance()->PortPrettyNameChanged.connect (_port_connections, invalidator (*this), boost::bind (&LCXLGUI::connection_handler, this), gui_context());
lcxl.ConnectionChange.connect (_port_connections, invalidator (*this), boost::bind (&LCXLGUI::connection_handler, this), gui_context());
}
LCXLGUI::~LCXLGUI ()