mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Emit Signal when plugin-stats change
This commit is contained in:
parent
be701f0248
commit
148ca92518
2 changed files with 4 additions and 0 deletions
|
|
@ -116,6 +116,9 @@ public:
|
||||||
/** plugins were added to or removed from one of the PluginInfoLists */
|
/** plugins were added to or removed from one of the PluginInfoLists */
|
||||||
PBD::Signal0<void> PluginListChanged;
|
PBD::Signal0<void> PluginListChanged;
|
||||||
|
|
||||||
|
/** Plugin Statistics (use-count, recently-used) changed */
|
||||||
|
PBD::Signal0<void> PluginStatsChanged;
|
||||||
|
|
||||||
/** A single plugin's Hidden/Favorite status changed */
|
/** 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, PluginStatusType> PluginStatusChanged; //PluginType t, string id, string tag
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1655,6 +1655,7 @@ PluginManager::stats_use_plugin (PluginInfoPtr const& pip)
|
||||||
statistics.erase (ps);
|
statistics.erase (ps);
|
||||||
statistics.insert (ps);
|
statistics.insert (ps);
|
||||||
}
|
}
|
||||||
|
PluginStatsChanged (); /* EMIT SIGNAL */
|
||||||
save_stats (); // XXX
|
save_stats (); // XXX
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue