From c9a053c47a7fbe0298acbb4d04d8af08db156111 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 5 Mar 2015 22:03:32 -0500 Subject: [PATCH] Hide automation state options for MIDI controls. These don't do anything, except mislead the user into expecting this stuff works like track automation. --- gtk2_ardour/automation_time_axis.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 60552ce14e..aa00aa570c 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -471,7 +471,10 @@ AutomationTimeAxisView::set_height (uint32_t h) first_call_to_set_height = false; if (h >= preset_height (HeightNormal)) { - auto_button.show(); + if (!(_parameter.type() >= MidiCCAutomation && + _parameter.type() <= MidiChannelPressureAutomation)) { + auto_button.show(); + } name_label.show(); hide_button.show(); @@ -560,7 +563,10 @@ AutomationTimeAxisView::build_display_menu () (AutoState) Touch))); auto_touch_item = dynamic_cast(&as_items.back()); - items.push_back (MenuElem (_("State"), *auto_state_menu)); + if (!(_parameter.type() >= MidiCCAutomation && + _parameter.type() <= MidiChannelPressureAutomation)) { + items.push_back (MenuElem (_("State"), *auto_state_menu)); + } /* mode menu */