diff options
author | Jan Lentfer <jan.lentfer@web.de> | 2019-03-06 09:12:08 +0100 |
---|---|---|
committer | Jan Lentfer <jan.lentfer@web.de> | 2019-03-06 09:28:25 +0100 |
commit | dfda5eab826fc696b90546e3eed3c044c9b0bf51 (patch) | |
tree | 4041736edbf3a29e5f7e32414e9c407243738180 /libs | |
parent | 1af123465c2906646ebd956741f267231174d29b (diff) |
LCXL:Disable global mute/solo/recarm in device mode
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/launch_control_xl/controllers.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |