Show "Calibration Assistant" as source when cal assistant is used

pull/74/head
Rune Broberg 2019-11-04 11:06:40 +01:00
rodzic a586d5aec2
commit 2ca6fe68e6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -578,7 +578,6 @@ class CalibrationWindow(QtWidgets.QWidget):
self.btn_automatic.setDisabled(False)
return
logger.info("Starting automatic calibration assistant.")
self.app.calibration.source = "Calibration assistant"
if not self.app.serial.is_open:
QtWidgets.QMessageBox(QtWidgets.QMessageBox.Information, "NanoVNA not connected",
"Please ensure the NanoVNA is connected before attempting calibration.").exec()
@ -602,6 +601,7 @@ class CalibrationWindow(QtWidgets.QWidget):
self.btn_automatic.setDisabled(False)
return
self.reset()
self.app.calibration.source = "Calibration assistant"
self.nextStep = 0
self.app.worker.signals.finished.connect(self.automaticCalibrationStep)
self.app.sweep()