13
0

backport to Ardour: Don't set the MCU Click led state from the button

Allow the update process to get the correct state and update the LED.
This commit is contained in:
Todd Naugle 2021-04-30 15:28:34 -05:00 committed by Robin Gareus
parent d5113e6e91
commit de0893cc8d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1209,11 +1209,11 @@ MackieControlProtocol::click_press (Mackie::Button&)
{ {
if (main_modifier_state() & MODIFIER_SHIFT) { if (main_modifier_state() & MODIFIER_SHIFT) {
access_action ("Editor/set-punch-from-edit-range"); access_action ("Editor/set-punch-from-edit-range");
return off; return none;
} else { } else {
bool state = !Config->get_clicking(); bool state = !Config->get_clicking();
Config->set_clicking (state); Config->set_clicking (state);
return state; return none;
} }
} }
Mackie::LedState Mackie::LedState