allow flags to be setable from the MixerSnapshotDialog

This commit is contained in:
Nikolaus Gullotta 2019-04-10 14:51:13 -05:00
parent b683546ab7
commit a5ef2cd27e
4 changed files with 89 additions and 9 deletions

View file

@ -73,11 +73,11 @@ class LIBARDOUR_API MixerSnapshot
std::vector<State> get_groups() {return group_states;};
std::vector<State> get_vcas() {return vca_states;};
bool recall_eq() { return _flags & RecallEQ;};
bool recall_comp() { return _flags & RecallComp;};
bool recall_io() { return _flags & RecallIO;};
bool recall_group() { return _flags & RecallGroup;};
bool recall_vca() { return _flags & RecallVCA;};
bool recall_eq() const { return _flags & RecallEQ;};
bool recall_comp() const { return _flags & RecallComp;};
bool recall_io() const { return _flags & RecallIO;};
bool recall_group() const { return _flags & RecallGroup;};
bool recall_vca() const { return _flags & RecallVCA;};
void set_recall_eq(bool);
void set_recall_comp(bool);

View file

@ -361,10 +361,6 @@ void MixerSnapshot::write(const string path)
return;
}
set_recall_eq(true);
set_recall_io(true);
set_recall_vca(true);
XMLNode* node = new XMLNode("MixerSnapshot");
node->set_property(X_("flags"), _flags);
node->set_property(X_("favorite"), favorite);