minor fix

This commit is contained in:
jean-pierre charras 2022-02-01 18:05:42 +01:00
parent bebfbce9b2
commit 1440c0a2d2
1 changed files with 5 additions and 4 deletions

View File

@ -816,13 +816,14 @@ int KICAD_MANAGER_CONTROL::Execute( const TOOL_EVENT& aEvent )
int KICAD_MANAGER_CONTROL::ShowPluginManager( const TOOL_EVENT& aEvent )
{
DIALOG_PCM pcm( m_frame );
pcm.ShowModal();
// For some reason, after a double click the bitmap button calling
// For some reason, after a click or a double click the bitmap button calling
// PCM keeps the focus althougt the focus was not set to this button.
// This hack force removing the focus from this button
m_frame->SetFocus();
wxSafeYield();
DIALOG_PCM pcm( m_frame );
pcm.ShowModal();
return 0;
}