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
decbb65f09
commit
2b4cfd9a60
|
@ -446,6 +446,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
|
|||
if( footprintWizard == NULL )
|
||||
return;
|
||||
|
||||
m_parameterGrid->Freeze();
|
||||
|
||||
m_parameterGrid->ClearGrid();
|
||||
m_parameterGridPage = m_pageList->GetSelection();
|
||||
|
||||
|
@ -532,6 +534,8 @@ void FOOTPRINT_WIZARD_FRAME::ReCreateParameterList()
|
|||
}
|
||||
|
||||
ResizeParamColumns();
|
||||
|
||||
m_parameterGrid->Thaw();
|
||||
}
|
||||
|
||||
void FOOTPRINT_WIZARD_FRAME::ResizeParamColumns()
|
||||
|
|
|
@ -278,6 +278,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