self.sweep_control.progress_bar.setValue() needs an int value, percentage sweep is not always guaranteed to be an int

pull/461/head
Randmental 2022-01-12 16:09:15 +02:00
rodzic 0c179388d3
commit 209a2e326b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -493,7 +493,7 @@ class NanoVNASaver(QtWidgets.QWidget):
for c in self.combinedCharts:
c.setCombinedData(s11, s21)
self.sweep_control.progress_bar.setValue(self.worker.percentage)
self.sweep_control.progress_bar.setValue(int(self.worker.percentage)) # add int() RM 12-01-2022
self.windows["tdr"].updateTDR()
if s11: