Footprint wizard frame: rebuild the parameter grid list after any parameter change.
The python footprint wizard can modify other parameters than the one that was changed by user. So the parameter grid list must be updated after every parameter change. Fixes: lp:1846404 https://bugs.launchpad.net/kicad/+bug/1846404
This commit is contained in:
parent
1dcd442156
commit
11f0acefe2
|
@ -379,6 +379,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
|
|||
if( footprintWizard == NULL )
|
||||
return;
|
||||
|
||||
m_parameterGrid->Freeze();
|
||||
|
||||
m_parameterGrid->ClearGrid();
|
||||
m_parameterGridPage = m_pageList->GetSelection();
|
||||
|
||||
|
@ -465,6 +467,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
|
|||
}
|
||||
|
||||
ResizeParamColumns();
|
||||
|
||||
m_parameterGrid->Thaw();
|
||||
}
|
||||
|
||||
void FOOTPRINT_WIZARD_FRAME::ResizeParamColumns()
|
||||
|
|
|
@ -251,6 +251,10 @@ void FOOTPRINT_WIZARD_FRAME::ParametersUpdated( wxGridEvent& event )
|
|||
|
||||
ReloadFootprint();
|
||||
DisplayWizardInfos();
|
||||
|
||||
// The python script can have modified some other parameters.
|
||||
// So rebuild the current parameter list with new values, just in case.
|
||||
ReCreateParameterList();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue