This is by design, because we update the menu item status in a single function, this function is called about 500ms(maybe another value, but I can't remember for now) at a time.
Shouldn't this happen when the menu is clicked e.g. opened ?
Yves
It should. But as far as I know, there are too many menu items and to many menu status, so we have some alternative way to update the menu status, see discussions here: wxUpdateUIEvent performance issues (http://forums.codeblocks.org/index.php/topic,11669.msg79334.html#msg79334)
EDIT: I just see in the source code, we have 100ms setting values.
MainFrame* CodeBlocksApp::InitFrame()
{
static_assert(wxMinimumVersion<2,8,12>::eval, "wxWidgets 2.8.12 is required");
MainFrame *frame = new MainFrame();
wxUpdateUIEvent::SetUpdateInterval(100);
SetTopWindow(nullptr);
if (g_DDEServer && m_DDE)
g_DDEServer->SetFrame(frame); // Set m_Frame in DDE-Server
return frame;
}