mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-27 17:07:40 +01:00
add PromotedSnapshot signal to manager, and subscribe to this this in the global MixerSnapshotList
This commit is contained in:
parent
132e895b18
commit
4a085b91f5
4 changed files with 21 additions and 2 deletions
|
|
@ -27,6 +27,8 @@
|
|||
#include "ardour/mixer_snapshot.h"
|
||||
#include "ardour/session.h"
|
||||
|
||||
#include "pbd/signals.h"
|
||||
|
||||
namespace ARDOUR {
|
||||
typedef std::set<MixerSnapshot*> SnapshotList;
|
||||
|
||||
|
|
@ -56,6 +58,8 @@ public:
|
|||
|
||||
void refresh();
|
||||
void clear() { _global_snapshots.clear(); _local_snapshots.clear(); };
|
||||
|
||||
PBD::Signal1<void, ARDOUR::MixerSnapshot*> PromotedSnapshot;
|
||||
private:
|
||||
void ensure_snapshot_dir(bool global);
|
||||
std::string _global_path;
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ bool MixerSnapshotManager::promote(MixerSnapshot* snapshot) {
|
|||
|
||||
//insert the new snapshot
|
||||
_global_snapshots.insert(new_snap);
|
||||
PromotedSnapshot(new_snap); /* EMIT SIGNAL */
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue