diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-08 20:54:19 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-08 23:35:00 +0200 |
commit | 64be124fe0f4f9efa456c90944b80b00483458a6 (patch) | |
tree | 4322fa81d2aaf8c084047e63f0dfc632d5940ed9 /gtk2_ardour/au_pluginui.mm | |
parent | aa11cb96b3c9b35d40a5fbefc41aa75ccf957f80 (diff) |
PluginUI: only show "Reset" & Automation buttons if there are any controls
Diffstat (limited to 'gtk2_ardour/au_pluginui.mm')
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index d3c38d87d5..00bbcbda1b 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -420,7 +420,9 @@ AUPluginUI::AUPluginUI (boost::shared_ptr<PluginInsert> insert) smaller_hbox->pack_start (automation_mode_label, false, false); smaller_hbox->pack_start (automation_mode_selector, false, false); #endif - smaller_hbox->pack_start (reset_button, false, false); + if (insert->controls().size() > 0) { + smaller_hbox->pack_start (reset_button, false, false); + } smaller_hbox->pack_start (bypass_button, false, true); VBox* v1_box = manage (new VBox); |