Skip to content

Commit

Permalink
Bug: Updated title outside the main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
mihtjel committed Sep 8, 2019
1 parent 51d7f97 commit 01d5dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NanoVNASaver/NanoVNASaver.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ def saveData(self, data, data12, source=None):
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):
Expand Down Expand Up @@ -817,6 +816,7 @@ def dataUpdated(self):

else:
print("ERROR: Failed acquiring data lock while updating")
self.updateTitle()
self.dataLock.release()

@staticmethod
Expand Down

0 comments on commit 01d5dba

Please sign in to comment.