Symbol library browser needs an infobar too

Fixes https://gitlab.com/kicad/code/kicad/-/issues/12843
This commit is contained in:
Jon Evans 2022-11-06 18:50:29 -05:00
parent 32b3f24f8b
commit 311741a9a3
1 changed files with 4 additions and 0 deletions

View File

@ -214,6 +214,8 @@ SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAM
m_auimgr.SetManagedWindow( this );
CreateInfoBar();
// Manage main toolbar
m_auimgr.AddPane( m_mainToolBar, EDA_PANE().HToolbar().Name( "MainToolbar" ).Top().Layer(6) );
m_auimgr.AddPane( m_messagePanel, EDA_PANE().Messages().Name( "MsgPanel" ) .Bottom().Layer(6) );
@ -267,6 +269,8 @@ SYMBOL_VIEWER_FRAME::SYMBOL_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent, FRAM
treePane.MinSize( 100, -1 );
}
FinishAUIInitialization();
if( !IsModal() ) // For modal mode, calling ShowModal() will show this frame
{
Raise();