Footprint viewer: ensure all panes are always visible, regardless m_auimgr.LoadPerspective() has read.

Perspective is overzealous: it stores everything, so we need to be sure these panes are not hidden,
regardless what the perspective has stored.

Fixes: lp:1789254
https://bugs.launchpad.net/kicad/+bug/1789254
This commit is contained in:
jean-pierre charras 2018-08-27 20:32:45 +02:00
parent a4ddbff321
commit da4d9ee392
1 changed files with 8 additions and 0 deletions

View File

@ -287,6 +287,14 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
wxSize tbsize = m_mainToolBar->GetSize();
m_auimgr.LoadPerspective( m_perspective, false );
m_auimgr.GetPane( m_mainToolBar ).BestSize( tbsize );
// LoadPerspective is overzealous: it stores everything.
// be sure these panes are not hidden,
// regardless what the perspective has stored
m_auimgr.GetPane( m_mainToolBar ).Show();
m_auimgr.GetPane( m_libList ).Show();
m_auimgr.GetPane( m_footprintList ).Show();
m_auimgr.GetPane( m_messagePanel ).Show();
}
// after changing something to the aui manager,