mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-01-10 10:40:13 +01:00
re-compute calibration when a measurement is updated
This commit is contained in:
parent
b26dc41907
commit
dd587a3230
|
|
@ -620,6 +620,15 @@ void Calibration::edit()
|
|||
connect(this, &Calibration::measurementsUpdated, d, [=](){
|
||||
updateMeasurementTable();
|
||||
updateCalibrationList();
|
||||
if(caltype.type != Type::None) {
|
||||
// update the calibration with the new measurement
|
||||
if(canCompute(caltype)) {
|
||||
compute(caltype);
|
||||
} else {
|
||||
// can not keep the calibration, disabled
|
||||
deactivate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
connect(ui->clearMeasurement, &QPushButton::clicked, [=](){
|
||||
|
|
|
|||
Loading…
Reference in a new issue