kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
Disable automatic calibration when sweep is set to continuous
Fix popout of Phase and RealImaginary chartspull/44/head
rodzic
1b40fbf468
commit
46a2f090aa
|
@ -533,6 +533,12 @@ class CalibrationWindow(QtWidgets.QWidget):
|
|||
self.btn_automatic.setDisabled(False)
|
||||
return
|
||||
|
||||
if self.app.sweepSettingsWindow.continuous_sweep_radiobutton.isChecked():
|
||||
QtWidgets.QMessageBox(QtWidgets.QMessageBox.Information, "Continuous sweep enabled",
|
||||
"Please disable continuous sweeping before attempting calibration.").exec()
|
||||
self.btn_automatic.setDisabled(False)
|
||||
return
|
||||
|
||||
short_step = QtWidgets.QMessageBox(QtWidgets.QMessageBox.Information,
|
||||
"Calibrate short",
|
||||
"Please connect the \"short\" standard to port 0 of the NanoVNA.\n\n" +
|
||||
|
|
|
@ -656,6 +656,7 @@ class PhaseChart(FrequencyChart):
|
|||
new_chart: PhaseChart = super().copy()
|
||||
new_chart.setUnwrap(self.unwrap)
|
||||
new_chart.action_unwrap.setChecked(self.unwrap)
|
||||
return new_chart
|
||||
|
||||
def setUnwrap(self, unwrap: bool):
|
||||
self.unwrap = unwrap
|
||||
|
@ -1606,6 +1607,7 @@ class RealImaginaryChart(FrequencyChart):
|
|||
new_chart.maxDisplayImag = self.maxDisplayImag
|
||||
new_chart.minDisplayReal = self.minDisplayReal
|
||||
new_chart.minDisplayImag = self.minDisplayImag
|
||||
return new_chart
|
||||
|
||||
def drawChart(self, qp: QtGui.QPainter):
|
||||
qp.setPen(QtGui.QPen(self.textColor))
|
||||
|
|
Ładowanie…
Reference in New Issue