mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-08 07:53:40 +00:00
Update calibration when calkit dialog is closed
This commit is contained in:
parent
3d97e4ca20
commit
735e7096f4
4 changed files with 18 additions and 9 deletions
|
|
@ -97,10 +97,10 @@ VNA::VNA(AppWindow *window)
|
|||
saveCal->setEnabled(false);
|
||||
|
||||
connect(calLoad, &QAction::triggered, [=](){
|
||||
cal.openFromFile();
|
||||
if(cal.getType() == Calibration::Type::None) {
|
||||
DisableCalibration();
|
||||
} else {
|
||||
cal.openFromFile();
|
||||
if(cal.getType() == Calibration::Type::None) {
|
||||
DisableCalibration();
|
||||
} else {
|
||||
ApplyCalibration(cal.getType());
|
||||
}
|
||||
});
|
||||
|
|
@ -127,7 +127,11 @@ VNA::VNA(AppWindow *window)
|
|||
|
||||
auto calEditKit = calMenu->addAction("Edit Calibration Kit");
|
||||
connect(calEditKit, &QAction::triggered, [=](){
|
||||
cal.getCalibrationKit().edit();
|
||||
cal.getCalibrationKit().edit([=](){
|
||||
if(calValid) {
|
||||
ApplyCalibration(cal.getType());
|
||||
}
|
||||
});
|
||||
});
|
||||
portExtension.setCalkit(&cal.getCalibrationKit());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue