I’m wondering how I can get the UndoManager’s changelistener to only react to undo()/redo() calls?
The changeListenerCallback() seems to be called when values are set (e.g. passing the undomanager to CachedValue::setValue calls).
Right now, I figured that this works but seems hacky:
void Main_VC::UndoListener::changeListenerCallback(ChangeBroadcaster* source)
if (auto* undo_man = dynamic_cast<UndoManager*>(source))
// react to undo()