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/vst_plugin_ui.cc | |
parent | aa11cb96b3c9b35d40a5fbefc41aa75ccf957f80 (diff) |
PluginUI: only show "Reset" & Automation buttons if there are any controls
Diffstat (limited to 'gtk2_ardour/vst_plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/vst_plugin_ui.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/vst_plugin_ui.cc b/gtk2_ardour/vst_plugin_ui.cc index 7d9e349466..fe66619601 100644 --- a/gtk2_ardour/vst_plugin_ui.cc +++ b/gtk2_ardour/vst_plugin_ui.cc @@ -40,7 +40,9 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> insert, boost: box->set_border_width (6); box->pack_end (focus_button, false, false); box->pack_end (bypass_button, false, false, 4); - box->pack_end (reset_button, false, false, 4); + if (insert->controls().size() > 0) { + box->pack_end (reset_button, false, false, 4); + } box->pack_end (delete_button, false, false); box->pack_end (save_button, false, false); box->pack_end (add_button, false, false); |