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:
parent
618347ef50
commit
9a8a25a596
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue