UndoManager menu titles not updating

I’m using the JUCE UndoManager in our application and it’s working fine.

However, the menu titles don’t always show the right values. The operation that’s executed when Cmd+Z is hit is always correct. It’s really only a display bug.

Is there a way to force update the menu titles to update when a command is added to the undo queue? It looks like the ApplicationCommandManager is responsible for this but I can’t find a method that looks responsible for this.


Have you tried calling ApplicationCommandManager::commandStatusChanged()?

Looks like that’s exactly what I need! Seems to work fine.