Eeschema, Net Navigator: fix incorrect refresh of nets tree.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20648
This commit is contained in:
@@ -606,15 +606,6 @@ void SCH_EDIT_FRAME::ToggleNetNavigator()
|
||||
}
|
||||
else
|
||||
{
|
||||
NET_NAVIGATOR_ITEM_DATA* itemData = nullptr;
|
||||
|
||||
wxTreeItemId selection = m_netNavigator->GetSelection();
|
||||
|
||||
if( selection.IsOk() )
|
||||
itemData = dynamic_cast<NET_NAVIGATOR_ITEM_DATA*>( m_netNavigator->GetItemData( selection ) );
|
||||
|
||||
RefreshNetNavigator( itemData );
|
||||
|
||||
if( netNavigatorPane.IsFloating() )
|
||||
{
|
||||
cfg->m_AuiPanels.net_nav_panel_float_size = netNavigatorPane.floating_size;
|
||||
@@ -626,6 +617,18 @@ void SCH_EDIT_FRAME::ToggleNetNavigator()
|
||||
|
||||
m_auimgr.Update();
|
||||
}
|
||||
|
||||
if( netNavigatorPane.IsShown() )
|
||||
{
|
||||
NET_NAVIGATOR_ITEM_DATA* itemData = nullptr;
|
||||
|
||||
wxTreeItemId selection = m_netNavigator->GetSelection();
|
||||
|
||||
if( selection.IsOk() )
|
||||
itemData = dynamic_cast<NET_NAVIGATOR_ITEM_DATA*>( m_netNavigator->GetItemData( selection ) );
|
||||
|
||||
RefreshNetNavigator( itemData );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user