13
0

Allow MIDI learn on inline toggle buttons

This commit is contained in:
Robin Gareus 2020-05-22 17:35:55 +02:00
parent a4a96f7556
commit 534838995d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -884,13 +884,14 @@ ProcessorEntry::Control::Control (ProcessorEntry& e,boost::shared_ptr<Automation
, _visible (false)
, _name (n)
{
_slider.set_controllable (c);
box.set_padding(0, 0, 4, 4);
if (c->toggled()) {
_button.set_text (_name);
_button.set_led_left (true);
_button.set_name ("processor control button");
_button.set_controllable (c);
box.add (_button);
_button.show ();
@ -909,6 +910,7 @@ ProcessorEntry::Control::Control (ProcessorEntry& e,boost::shared_ptr<Automation
_slider.set_name ("ProcessorControlSlider");
_slider.set_text (_name);
_slider.set_controllable (c);
box.add (_slider);
_slider.show ();