# UndoManager menu titles not updating

**URL:** <https://forum.juce.com/t/undomanager-menu-titles-not-updating/30939>\
**Category:** MacOSX and iOS\
**Created:** [December 19, 2018, 9:32am UTC](https://forum.juce.com/t/undomanager-menu-titles-not-updating/30939 "2018-12-19T09:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nonlethalapplications](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonlethalapplications/32/10298_2.png) [@nonlethalapplications](https://forum.juce.com/u/nonlethalapplications)\
**Post date:** [December 19, 2018, 9:32am UTC](https://forum.juce.com/t/undomanager-menu-titles-not-updating/30939/1 "2018-12-19T09:32:15Z")

</div>

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.

Thanks!

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [December 19, 2018, 9:41am UTC](https://forum.juce.com/t/undomanager-menu-titles-not-updating/30939/2 "2018-12-19T09:41:54Z")

</div>

Have you tried calling `ApplicationCommandManager::commandStatusChanged()`?

---

<div class="post-metadata">

**Author:** ![nonlethalapplications](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonlethalapplications/32/10298_2.png) [@nonlethalapplications](https://forum.juce.com/u/nonlethalapplications)\
**Post date:** [December 19, 2018, 10:37am UTC](https://forum.juce.com/t/undomanager-menu-titles-not-updating/30939/3 "2018-12-19T10:37:45Z")

</div>

> [@ed95](#):
>
> ApplicationCommandManager::commandStatusChanged()

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