From 64be124fe0f4f9efa456c90944b80b00483458a6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 8 Sep 2017 20:54:19 +0200 Subject: PluginUI: only show "Reset" & Automation buttons if there are any controls --- gtk2_ardour/vst_plugin_ui.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/vst_plugin_ui.cc') 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 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); -- cgit v1.2.3