From dfda5eab826fc696b90546e3eed3c044c9b0bf51 Mon Sep 17 00:00:00 2001 From: Jan Lentfer Date: Wed, 6 Mar 2019 09:12:08 +0100 Subject: LCXL:Disable global mute/solo/recarm in device mode --- libs/surfaces/launch_control_xl/controllers.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs') diff --git a/libs/surfaces/launch_control_xl/controllers.cc b/libs/surfaces/launch_control_xl/controllers.cc index 12d2439937..9c7947f1af 100644 --- a/libs/surfaces/launch_control_xl/controllers.cc +++ b/libs/surfaces/launch_control_xl/controllers.cc @@ -997,6 +997,8 @@ LaunchControlXL::button_device_long_press() void LaunchControlXL::button_mute() { + if (device_mode()) { return ; } + if (buttons_down.find(Device) != buttons_down.end()) { access_action ("Editor/track-mute-toggle"); } else { @@ -1013,6 +1015,8 @@ LaunchControlXL::button_mute_long_press() void LaunchControlXL::button_solo() { + if (device_mode()) { return ; } + if (buttons_down.find(Device) != buttons_down.end()) { access_action ("Editor/track-solo-toggle"); } else { @@ -1029,6 +1033,8 @@ LaunchControlXL::button_solo_long_press() void LaunchControlXL::button_record() { + if (device_mode()) { return ; } + if (buttons_down.find(Device) != buttons_down.end()) { access_action ("Editor/track-record-enable-toggle"); } else { -- cgit v1.2.3