13
0

Mackie Control: Use selected device's info when building the Keys dialog

The device info file allows key names and values to be configured in each
device file. Use that information when building the Functions Keys tab in
the Mackie protocol setup dialog.
This commit is contained in:
Todd Naugle 2021-08-06 12:18:24 -05:00
parent 899ffa3b23
commit 8cf7204917

View File

@ -501,7 +501,7 @@ MackieControlProtocolGUI::refresh_function_key_editor ()
TreeModel::Row row;
DeviceProfile dp (_cp.device_profile());
DeviceInfo di;
DeviceInfo di (_cp.device_info());
for (int n = 0; n < Mackie::Button::FinalGlobalButton; ++n) {
@ -734,6 +734,8 @@ MackieControlProtocolGUI::device_changed ()
_device_dependent_widget->show_all ();
table.attach (*_device_dependent_widget, 0, 12, device_dependent_row, device_dependent_row+1, AttachOptions(0), AttachOptions(0), 0, 0);
refresh_function_key_editor ();
}
void