From 7a66b22428afa1a3a7105119e1e09c08d1612b0e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 11 Oct 2019 00:13:07 +0200 Subject: Show preset-browser button if annoted presets are available --- gtk2_ardour/lv2_plugin_ui.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk2_ardour/lv2_plugin_ui.cc') diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index ff2fc79b3b..7f37b8c8ca 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -305,6 +305,9 @@ LV2PluginUI::LV2PluginUI(boost::shared_ptr pi, if (pi->controls().size() > 0) { _ardour_buttons_box.pack_end (reset_button, false, false, 4); } + if (has_descriptive_presets ()) { + _ardour_buttons_box.pack_end (preset_browser_button, false, false); + } _ardour_buttons_box.pack_end (delete_button, false, false); _ardour_buttons_box.pack_end (save_button, false, false); _ardour_buttons_box.pack_end (add_button, false, false); -- cgit v1.2.3