mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Allow to clear LV2 plugin scan info
This commit is contained in:
parent
e658056cd7
commit
5b77e348e7
1 changed files with 8 additions and 0 deletions
|
|
@ -1079,6 +1079,14 @@ PluginManager::get_ladspa_category (uint32_t plugin_id)
|
||||||
void
|
void
|
||||||
PluginManager::lv2_plugin (std::string const& uri, PluginScanLogEntry::PluginScanResult sr, std::string const& msg, bool reset)
|
PluginManager::lv2_plugin (std::string const& uri, PluginScanLogEntry::PluginScanResult sr, std::string const& msg, bool reset)
|
||||||
{
|
{
|
||||||
|
if (reset && msg.empty ()) {
|
||||||
|
PluginScanLog::iterator j = _plugin_scan_log.find (PSLEPtr (new PluginScanLogEntry (LV2, uri)));
|
||||||
|
if (j != _plugin_scan_log.end ()) {
|
||||||
|
_plugin_scan_log.erase (j);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PSLEPtr psle (scan_log_entry (LV2, uri));
|
PSLEPtr psle (scan_log_entry (LV2, uri));
|
||||||
if (reset) {
|
if (reset) {
|
||||||
psle->reset ();
|
psle->reset ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue