13
0

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.
This commit is contained in:
Robin Gareus 2024-04-12 17:28:00 +02:00
parent 59b2369736
commit 1cd9a9b57d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 {