@ -391,12 +391,6 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
schematic . UpdateSymbolLinks ( ) ; // Update all symbol library links for all sheets.
SetScreen ( g_CurrentSheet - > LastScreen ( ) ) ;
// Ensure the schematic is fully segmented on first display
NormalizeSchematicOnFirstLoad ( true ) ;
GetScreen ( ) - > ClearUndoORRedoList ( GetScreen ( ) - > m_UndoList , 1 ) ;
GetScreen ( ) - > TestDanglingEnds ( ) ; // Only perform the dangling end test on root sheet.
// Migrate conflicting bus definitions
// TODO(JE) This should only run once based on schematic file version
if ( g_ConnectionGraph - > GetBusesNeedingMigration ( ) . size ( ) > 0 )
@ -404,10 +398,14 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
DIALOG_MIGRATE_BUSES dlg ( this ) ;
dlg . ShowQuasiModal ( ) ;
RecalculateConnections ( ) ;
OnModify ( ) ;
}
GetScreen ( ) - > TestDanglingEnds ( ) ; // Only perform the dangling end test on root sheet.
RecalculateConnections ( GLOBAL_CLEANUP ) ;
GetScreen ( ) - > ClearUndoORRedoList ( GetScreen ( ) - > m_UndoList , 1 ) ;
GetScreen ( ) - > m_Initialized = true ;
}
@ -646,9 +644,6 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
SCH_SCREENS schematic ;
schematic . UpdateSymbolLinks ( ) ; // Update all symbol library links for all sheets.
// Ensure the schematic is fully segmented on first display
NormalizeSchematicOnFirstLoad ( false ) ;
GetScreen ( ) - > m_Initialized = true ;
EE_TYPE_COLLECTOR components ;
@ -675,11 +670,11 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
}
}
}
GetScreen ( ) - > ClearUndoORRedoList ( GetScreen ( ) - > m_UndoList , 1 ) ;
// Only perform the dangling end test on root sheet.
GetScreen ( ) - > TestDanglingEnds ( ) ;
RecalculateConnections ( ) ;
RecalculateConnections ( GLOBAL_CLEANUP ) ;
GetScreen ( ) - > ClearUndoORRedoList ( GetScreen ( ) - > m_UndoList , 1 ) ;
GetScreen ( ) - > SetGrid ( ID_POPUP_GRID_LEVEL_1000 + m_LastGridSizeId ) ;
m_toolManager - > RunAction ( ACTIONS : : zoomFitScreen , true ) ;