lib_tree.cpp: Fix a lot of wxWidgets alerts on Windows.

On Windows calling m_adapter->RefreshTree() to refresh the tree does not work fine.
Just calling Refresh() is enough.
This commit is contained in:
jean-pierre charras 2020-03-28 11:00:20 +01:00
parent aebfbda183
commit c41199f048
1 changed files with 7 additions and 0 deletions

View File

@ -216,7 +216,14 @@ void LIB_TREE::Regenerate( bool aKeepState )
void LIB_TREE::RefreshLibTree() void LIB_TREE::RefreshLibTree()
{ {
// m_adapter->RefreshTree() does not work fine on Windows.
// It creates a lot of wxWidgets alerts.
// calling Refresh of the wxPanel is enough
#ifdef _WINDOWS_
Refresh();
#else
m_adapter->RefreshTree(); m_adapter->RefreshTree();
#endif
} }