Bug: Updated title outside the main thread

pull/12/head v0.0.7
Rune B. Broberg 2019-09-08 20:30:20 +02:00
rodzic 51d7f9755b
commit 01d5dba4a0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -723,7 +723,6 @@ class NanoVNASaver(QtWidgets.QWidget):
self.sweepSource = source
else:
self.sweepSource = strftime("%Y-%m-%d %H:%M:%S", gmtime())
self.updateTitle()
def dataUpdated(self):
if self.dataLock.acquire(blocking=True):
@ -817,6 +816,7 @@ class NanoVNASaver(QtWidgets.QWidget):
else:
print("ERROR: Failed acquiring data lock while updating")
self.updateTitle()
self.dataLock.release()
@staticmethod