Hide internal plugins from users in the GUI
This commit is contained in:
parent
bbbd023895
commit
db9e11d973
@ -100,6 +100,9 @@ invalid_instrument (PluginInfoPtr p) {
|
||||
if (manager.get_status(p) == PluginManager::Concealed) {
|
||||
return true;
|
||||
}
|
||||
if (p->is_internal ()) {
|
||||
return true;
|
||||
}
|
||||
return !p->is_instrument();
|
||||
}
|
||||
|
||||
|
@ -363,6 +363,10 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string&
|
||||
bool maybe_show = false;
|
||||
PluginManager::PluginStatusType status = manager.get_status (info);
|
||||
|
||||
if (info->is_internal ()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!searchstr.empty()) {
|
||||
|
||||
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);
|
||||
if (status == PluginManager::Hidden) continue;
|
||||
if (status == PluginManager::Concealed) continue;
|
||||
if ((*i)->is_internal ()) continue;
|
||||
|
||||
string creator = (*i)->creator;
|
||||
|
||||
@ -1115,6 +1120,7 @@ PluginSelector::create_by_tags_menu (ARDOUR::PluginInfoList& all_plugs)
|
||||
PluginManager::PluginStatusType status = manager.get_status (*i);
|
||||
if (status == PluginManager::Hidden) continue;
|
||||
if (status == PluginManager::Concealed) continue;
|
||||
if ((*i)->is_internal ()) continue;
|
||||
|
||||
/* for each tag in the plugins tag list, add it to that submenu */
|
||||
vector<string> tokens = manager.get_tags(*i);
|
||||
|
Loading…
Reference in New Issue
Block a user