mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
launchpad pro: only light Sends button if the selected stripable has 1+ sends
This commit is contained in:
parent
1ec966d964
commit
6d9c47c920
1 changed files with 12 additions and 0 deletions
|
|
@ -1017,6 +1017,18 @@ LaunchPadPro::stripable_selection_changed ()
|
|||
light_pad (PadID (Lower1 + selected_pad), find_closest_palette_color (first_selected->presentation_info().color()), 1);
|
||||
}
|
||||
|
||||
if (first_selected) {
|
||||
MIDI::byte msg[3];
|
||||
msg[0] = 0x90;
|
||||
msg[1] = Sends;
|
||||
if (first_selected->send_name (0).empty()) {
|
||||
msg[2] = 0x0;
|
||||
} else {
|
||||
msg[2] = 0x2;
|
||||
}
|
||||
daw_write (msg, 3);
|
||||
}
|
||||
|
||||
/* Make all other selection buttons static */
|
||||
|
||||
for (int n = 0; n < 8; ++n) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue