From 8cf7204917cc2cde62288fefa00ea498c55b7363 Mon Sep 17 00:00:00 2001 From: Todd Naugle Date: Fri, 6 Aug 2021 12:18:24 -0500 Subject: [PATCH] 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. --- libs/surfaces/mackie/gui.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/mackie/gui.cc b/libs/surfaces/mackie/gui.cc index fdb2238ab2..90609f48aa 100644 --- a/libs/surfaces/mackie/gui.cc +++ b/libs/surfaces/mackie/gui.cc @@ -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