ApplicationCommandManager with no target

i’ve built an application with the manager for commands, and before adding my command i registered a menu with only the common application Quit command,

i don’t know why but is shown in grey (disabled).
but if i register a target before registering the

commandManager->registerAllCommandsForTarget (contentComp); commandManager->registerAllCommandsForTarget (JUCEApplication::getInstance());
then the Quit menu item command is enabled…
is this behaviour wanted ? dunnow…

I just tried this myself with the demo app and it works fine…?

maybe i’m making something weirdo… duh