Don't dismiss an infobar that isn't shown to start with.

On Mac (at least), we get a 1 second pause even if the bar wasn't shown.

Fixes https://gitlab.com/kicad/code/kicad/issues/13193
This commit is contained in:
Jeff Young 2022-12-18 10:54:49 +00:00
parent 618347ef50
commit 9a8a25a596
1 changed files with 3 additions and 0 deletions

View File

@ -174,6 +174,9 @@ void WX_INFOBAR::ShowMessage( const wxString& aMessage, int aFlags, MESSAGE_TYPE
void WX_INFOBAR::Dismiss()
{
if( !IsShown() )
return;
// Don't do anything if we requested the UI update
if( m_updateLock )
return;