Use new tag-search API

This fixes an issue where "By Tag" dropdown contained empty menu-items,
in case a hidden plugin is the only one with a given tag.
This commit is contained in:
Robin Gareus 2018-01-31 14:04:14 +01:00
parent 09ca375e15
commit 2b5ee5a963
2 changed files with 2 additions and 2 deletions

View File

@ -2684,7 +2684,7 @@ Mixer_UI::refill_tag_combo ()
{
PluginManager& mgr (PluginManager::instance());
std::vector<std::string> tags = mgr.get_all_tags (true);
std::vector<std::string> tags = mgr.get_all_tags (PluginManager::OnlyFavorites);
favorite_plugins_tag_combo.clear();
favorite_plugins_tag_combo.append_text (_("Show All"));

View File

@ -1126,7 +1126,7 @@ PluginSelector::create_by_tags_menu (ARDOUR::PluginInfoList& all_plugs)
by_tags->set_name("ArdourContextMenu");
MenuList& by_tags_items = by_tags->items();
std::vector<std::string> all_tags = manager.get_all_tags(false);
std::vector<std::string> all_tags = manager.get_all_tags (PluginManager::NoHidden);
for (vector<string>::iterator t = all_tags.begin(); t != all_tags.end(); ++t) {
Gtk::Menu *submenu = new Gtk::Menu;
by_tags_items.push_back (MenuElem (*t, *manage (submenu)));