PCB updater: spread footprints after updating netlist
This commit is contained in:
parent
5de85450b8
commit
aa5a1d1898
|
@ -105,8 +105,22 @@ void DIALOG_UPDATE_PCB::PerformUpdate( bool aDryRun )
|
||||||
|
|
||||||
m_frame->SetMsgPanel( board );
|
m_frame->SetMsgPanel( board );
|
||||||
|
|
||||||
|
|
||||||
|
if( m_frame->IsGalCanvasActive() )
|
||||||
|
{
|
||||||
|
m_frame->SpreadFootprints( &newFootprints, false, false );
|
||||||
|
|
||||||
|
BOOST_FOREACH( MODULE* footprint, newFootprints )
|
||||||
|
{
|
||||||
|
toolManager->RunAction( COMMON_ACTIONS::selectItem, true, footprint );
|
||||||
|
}
|
||||||
|
toolManager->InvokeTool( "pcbnew.InteractiveEdit" );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
m_btnPerformUpdate->Enable( false );
|
m_btnPerformUpdate->Enable( false );
|
||||||
m_btnPerformUpdate->SetLabel( _( "Update complete" ) );
|
m_btnPerformUpdate->SetLabel( _( "Update complete" ) );
|
||||||
|
m_btnCancel->SetLabel ( _("Close") );
|
||||||
m_btnCancel->SetFocus();
|
m_btnCancel->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue