I am developing a plug-in using ValueTreeState for the plugin’s parameters and UndoManager for the Undo/Redo functionalities by attaching the UndoManager to my ValueTreeState like this:
MyAudioProcessor::MyAudioProcessor()
: AudioProcessor (BusesProperties()
.withInput ("Input", juce::AudioChannelSet::stereo(), true)
.withOutput ("Output", juce::AudioChannelSet::stereo(), true)
), apvts(*this, &undoManager, "Parameters", createParameters())
There are some parameters in my ValueTreeState that I want to be ignored for the Undo/Redo with the UndoManager and I was wondering if there is any way to make the UndoManager ignore a transaction if it’s coming from a certain parameter.
The use case is I have parameters in the VauleTreeState storing the size of the GUI or the value of the vuMeter that shouldn’t be considered as an undoableAction.