Freeze GUI as well to prevent wx updates

The tree model may get updated by a redraw, so we need to freeze both
the model and the view while updating

Fixes https://gitlab.com/kicad/code/kicad/issues/5872
This commit is contained in:
Seth Hillbrand 2020-10-16 08:26:19 -07:00
parent 1b2168af1e
commit 0d6684bdf0
1 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,7 @@ bool LIB_EDIT_FRAME::IsSearchTreeShown()
void LIB_EDIT_FRAME::FreezeSearchTree()
{
m_treePane->Freeze();
m_libMgr->GetAdapter()->Freeze();
}
@ -526,6 +527,7 @@ void LIB_EDIT_FRAME::FreezeSearchTree()
void LIB_EDIT_FRAME::ThawSearchTree()
{
m_libMgr->GetAdapter()->Thaw();
m_treePane->Thaw();
}