2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

applets: fix warning timing

This commit is contained in:
Star Chen 2021-07-19 12:26:01 +08:00 committed by GitHub
parent 796aeabb53
commit e996b5f635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,8 @@ class HistogramPlot(pyqtgraph.PlotWidget):
brush=(0, 0, 255, 150))
self.setTitle(title)
else:
self.timer.start(1000)
if not self.timer.isActive():
self.timer.start(1000)
def length_warning(self):
self.clear()