Restore lib tree refreshing, but don't attempt to refresh tree root.
This commit is contained in:
@@ -394,10 +394,11 @@ void LIB_TREE_MODEL_ADAPTER::RefreshTree( LIB_TREE_NODE* aNode )
|
||||
for( auto const& child: aNode->m_Children )
|
||||
{
|
||||
if( child->m_Score > 0 )
|
||||
{
|
||||
RefreshTree( child.get() );
|
||||
ItemChanged( ToItem( aNode ) );
|
||||
}
|
||||
}
|
||||
|
||||
ItemChanged( ToItem( aNode ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -216,14 +216,7 @@ void LIB_TREE::Regenerate( bool aKeepState )
|
||||
|
||||
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();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user