add signal for Plugin Status Changes (Hidden/Favorite)

This commit is contained in:
Robin Gareus 2015-12-22 04:25:37 +01:00
parent a7b236561c
commit dc20611933
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,8 @@ class LIBARDOUR_API PluginManager : public boost::noncopyable {
/** plugins were added to or removed from one of the PluginInfoLists */
PBD::Signal0<void> PluginListChanged;
/** Plugin Hidden/Favorite status changed */
PBD::Signal0<void> PluginStatusesChanged;
private:
struct PluginStatus {

View File

@ -1123,6 +1123,7 @@ PluginManager::save_statuses ()
ofs << endl;
}
g_file_set_contents (path.c_str(), ofs.str().c_str(), -1, NULL);
PluginStatusesChanged (); /* EMIT SIGNAL */
}
void