I have registered a button to listen to my ApplicationCommandManager in order to synchronize the toggle state of the button with a command which can also be invoked by a key command. In the applicationCommandListChanged() method, I had a hell of a time figuring out how to get the up-to-date status of the command. Here’s what I ended up with:
That seems unusually oblique for JUCE… is there an easier way that I am overlooking? I tried using getCommandForID() but the resulting ApplicationCommandInfo is not up to date, since invoking the command disabled it until the globalEnable command is invoked.
Oh well, it works at least. It’s just not as pretty as I’m used to, and that’s meant as a compliment