Add backend-API to reset plugin tags
This commit is contained in:
parent
dc88471695
commit
fa676eb784
|
@ -86,6 +86,7 @@ public:
|
|||
void save_tags ();
|
||||
|
||||
void set_tags (ARDOUR::PluginType type, std::string unique_id, std::string tags, bool factory, bool force = false);
|
||||
void reset_tags (PluginInfoPtr const&);
|
||||
std::string get_tags_as_string (PluginInfoPtr const&) const;
|
||||
std::vector<std::string> get_tags (PluginInfoPtr const&) const;
|
||||
std::vector<std::string> get_all_tags (bool favorites_only) const;
|
||||
|
|
|
@ -1496,7 +1496,7 @@ PluginManager::get_tags (const PluginInfoPtr& pi) const
|
|||
}
|
||||
|
||||
std::string
|
||||
PluginManager::get_tags_as_string (const PluginInfoPtr& pi) const
|
||||
PluginManager::get_tags_as_string (PluginInfoPtr const& pi) const
|
||||
{
|
||||
std::string ret;
|
||||
|
||||
|
@ -1601,6 +1601,12 @@ PluginManager::set_tags (PluginType t, string id, string tag, bool factory, bool
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
PluginManager::reset_tags (PluginInfoPtr const& pi)
|
||||
{
|
||||
set_tags (pi->type, pi->unique_id, pi->category, true, true);
|
||||
}
|
||||
|
||||
std::string
|
||||
PluginManager::sanitize_tag (const std::string to_sanitize) const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user