13
0

Hide internal plugins from users in the GUI

This commit is contained in:
Robin Gareus 2023-11-09 02:02:43 +01:00
parent bbbd023895
commit db9e11d973
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,9 @@ invalid_instrument (PluginInfoPtr p) {
if (manager.get_status(p) == PluginManager::Concealed) { if (manager.get_status(p) == PluginManager::Concealed) {
return true; return true;
} }
if (p->is_internal ()) {
return true;
}
return !p->is_instrument(); return !p->is_instrument();
} }

View File

@ -363,6 +363,10 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string&
bool maybe_show = false; bool maybe_show = false;
PluginManager::PluginStatusType status = manager.get_status (info); PluginManager::PluginStatusType status = manager.get_status (info);
if (info->is_internal ()) {
return false;
}
if (!searchstr.empty()) { if (!searchstr.empty()) {
if (_search_name_checkbox->get_active()) { /* name contains */ if (_search_name_checkbox->get_active()) { /* name contains */
@ -1055,6 +1059,7 @@ PluginSelector::create_by_creator_menu (ARDOUR::PluginInfoList& all_plugs)
PluginManager::PluginStatusType status = manager.get_status (*i); PluginManager::PluginStatusType status = manager.get_status (*i);
if (status == PluginManager::Hidden) continue; if (status == PluginManager::Hidden) continue;
if (status == PluginManager::Concealed) continue; if (status == PluginManager::Concealed) continue;
if ((*i)->is_internal ()) continue;
string creator = (*i)->creator; string creator = (*i)->creator;
@ -1115,6 +1120,7 @@ PluginSelector::create_by_tags_menu (ARDOUR::PluginInfoList& all_plugs)
PluginManager::PluginStatusType status = manager.get_status (*i); PluginManager::PluginStatusType status = manager.get_status (*i);
if (status == PluginManager::Hidden) continue; if (status == PluginManager::Hidden) continue;
if (status == PluginManager::Concealed) continue; if (status == PluginManager::Concealed) continue;
if ((*i)->is_internal ()) continue;
/* for each tag in the plugins tag list, add it to that submenu */ /* for each tag in the plugins tag list, add it to that submenu */
vector<string> tokens = manager.get_tags(*i); vector<string> tokens = manager.get_tags(*i);