Hide automation state options for MIDI controls.
These don't do anything, except mislead the user into expecting this stuff works like track automation.
This commit is contained in:
parent
818ed5fe12
commit
c9a053c47a
@ -471,7 +471,10 @@ AutomationTimeAxisView::set_height (uint32_t h)
|
|||||||
first_call_to_set_height = false;
|
first_call_to_set_height = false;
|
||||||
|
|
||||||
if (h >= preset_height (HeightNormal)) {
|
if (h >= preset_height (HeightNormal)) {
|
||||||
|
if (!(_parameter.type() >= MidiCCAutomation &&
|
||||||
|
_parameter.type() <= MidiChannelPressureAutomation)) {
|
||||||
auto_button.show();
|
auto_button.show();
|
||||||
|
}
|
||||||
name_label.show();
|
name_label.show();
|
||||||
hide_button.show();
|
hide_button.show();
|
||||||
|
|
||||||
@ -560,7 +563,10 @@ AutomationTimeAxisView::build_display_menu ()
|
|||||||
(AutoState) Touch)));
|
(AutoState) Touch)));
|
||||||
auto_touch_item = dynamic_cast<Gtk::CheckMenuItem*>(&as_items.back());
|
auto_touch_item = dynamic_cast<Gtk::CheckMenuItem*>(&as_items.back());
|
||||||
|
|
||||||
|
if (!(_parameter.type() >= MidiCCAutomation &&
|
||||||
|
_parameter.type() <= MidiChannelPressureAutomation)) {
|
||||||
items.push_back (MenuElem (_("State"), *auto_state_menu));
|
items.push_back (MenuElem (_("State"), *auto_state_menu));
|
||||||
|
}
|
||||||
|
|
||||||
/* mode menu */
|
/* mode menu */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user