Always update the hierarchy navigator when setting the current sheet in the frame

Fix #9221
This commit is contained in:
Marek Roszko 2021-09-23 18:14:25 -04:00
parent 71602475eb
commit 064ab933dd
3 changed files with 2 additions and 4 deletions

View File

@ -314,4 +314,6 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
editTool->UpdateNetHighlighting( dummy );
HardRedraw(); // Ensure all items are redrawn (especially the drawing-sheet items)
UpdateHierarchyNavigator();
}

View File

@ -1987,7 +1987,6 @@ int SCH_EDITOR_CONTROL::EnterSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().push_back( sheet );
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;
@ -2006,7 +2005,6 @@ int SCH_EDITOR_CONTROL::LeaveSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().pop_back();
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;

View File

@ -91,7 +91,6 @@ int SCH_NAVIGATE_TOOL::EnterSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().push_back( sheet );
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;
@ -107,7 +106,6 @@ int SCH_NAVIGATE_TOOL::LeaveSheet( const TOOL_EVENT& aEvent )
m_frame->GetCurrentSheet().pop_back();
m_frame->DisplayCurrentSheet();
m_frame->UpdateHierarchyNavigator();
}
return 0;