diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-02 19:25:01 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2018-02-02 19:25:01 -0600 |
commit | b69d818ce9fb86728b0033c6396e17dea56508a8 (patch) | |
tree | 40e503c11a1dc886e933c4dec667a82fc0980668 /libs | |
parent | 3aacdd79ae7537f507e6ee86ad6ffb85bc55bdfc (diff) |
Further defer changes of plugin Tags+Status, and consolidate code to call PluginListChanged only once.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/plugin_manager.h | 9 | ||||
-rw-r--r-- | libs/ardour/plugin_manager.cc | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/libs/ardour/ardour/plugin_manager.h b/libs/ardour/ardour/plugin_manager.h index ba136c6578..f079e4b812 100644 --- a/libs/ardour/ardour/plugin_manager.h +++ b/libs/ardour/ardour/plugin_manager.h @@ -97,13 +97,14 @@ public: }; std::vector<std::string> get_all_tags (enum TagFilter) const; - /** plugins were added to or removed from one of the PluginInfoLists */ + /** plugins were added to or removed from one of the PluginInfoLists, OR the user has made changes to the status/tags */ PBD::Signal0<void> PluginListChanged; - /** Plugin Hidden/Favorite status changed */ - PBD::Signal3<void, ARDOUR::PluginType, std::string, PluginStatusType> PluginStatusesChanged; //PluginType t, string id, string tag + /** A single plugin's Hidden/Favorite status changed */ + PBD::Signal3<void, ARDOUR::PluginType, std::string, PluginStatusType> PluginStatusChanged; //PluginType t, string id, string tag - PBD::Signal3<void, ARDOUR::PluginType, std::string, std::string> PluginTagsChanged; //PluginType t, string id, string tag + /** A single plugin's Tags status changed */ + PBD::Signal3<void, ARDOUR::PluginType, std::string, std::string> PluginTagChanged; //PluginType t, string id, string tag private: diff --git a/libs/ardour/plugin_manager.cc b/libs/ardour/plugin_manager.cc index 4b396da489..80a45a50d7 100644 --- a/libs/ardour/plugin_manager.cc +++ b/libs/ardour/plugin_manager.cc @@ -1474,7 +1474,7 @@ PluginManager::set_status (PluginType t, string id, PluginStatusType status) statuses.insert (ps); } - PluginStatusesChanged (t, id, status); /* EMIT SIGNAL */ + PluginStatusChanged (t, id, status); /* EMIT SIGNAL */ } PluginType @@ -1612,7 +1612,7 @@ PluginManager::set_tags (PluginType t, string id, string tag, bool factory, bool ptags.insert (ps); } if (!factory || force) { - PluginTagsChanged (t, id, sanitized); /* EMIT SIGNAL */ + PluginTagChanged (t, id, sanitized); /* EMIT SIGNAL */ } } |