Show preset-browser button if annoted presets are available

This commit is contained in:
Robin Gareus 2019-10-11 00:13:07 +02:00
parent 71fa4fa75c
commit 7a66b22428
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 12 additions and 1 deletions

View file

@ -45,6 +45,9 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> insert, boost:
if (insert->controls().size() > 0) {
box->pack_end (reset_button, false, false, 4);
}
if (has_descriptive_presets ()) {
box->pack_end (preset_browser_button, false, false);
}
box->pack_end (delete_button, false, false);
box->pack_end (save_button, false, false);
box->pack_end (add_button, false, false);