Sometimes the MenuBarModel is greyed out when I click it?

I have been seeing this behavior in Debug from a CMake project. Sometimes my options in the menubarmodel get greyed out? Wondering if anyone has seen this behavior before