From 1cd9a9b57df4f20c9e3c08ec6b631a710aec8f58 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 12 Apr 2024 17:28:00 +0200 Subject: [PATCH] Only show automation mode button for PluginInsert ctrls Previously the generic UI of I/O plugins (and upcoming Region Fx showed an insensitive Automation mode (manual, play, touch etc) dropdown for all controls. That accomplished nothing but wasted space. --- gtk2_ardour/generic_pluginui.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 63870eff2a..2122f756f5 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -1015,7 +1015,10 @@ GenericPluginUI::build_control_ui (const Evoral::Parameter& param, } - if (!_pi || mcontrol->flags () & Controllable::NotAutomatable) { + if (!_pi) { + control_ui->automate_button.set_no_show_all (); + control_ui->automate_button.hide (); + } else if (mcontrol->flags () & Controllable::NotAutomatable) { control_ui->automate_button.set_sensitive (false); set_tooltip(control_ui->automate_button, _("This control cannot be automated")); } else {