Maybe addresses sentry KICAD-PC
@ -483,9 +483,10 @@ void EDA_BASE_FRAME::ReCreateMenuBar()
* ensure that they do not occur within the same event handling call stack.
*/
CallAfter( [=]()
CallAfter( [&]()
{
doReCreateMenuBar();
if( !m_isClosing )
} );
}