forked from M-Labs/artiq
applets: fix warning timing
This commit is contained in:
parent
796aeabb53
commit
e996b5f635
|
@ -34,7 +34,8 @@ class HistogramPlot(pyqtgraph.PlotWidget):
|
||||||
brush=(0, 0, 255, 150))
|
brush=(0, 0, 255, 150))
|
||||||
self.setTitle(title)
|
self.setTitle(title)
|
||||||
else:
|
else:
|
||||||
self.timer.start(1000)
|
if not self.timer.isActive():
|
||||||
|
self.timer.start(1000)
|
||||||
|
|
||||||
def length_warning(self):
|
def length_warning(self):
|
||||||
self.clear()
|
self.clear()
|
||||||
|
|
Loading…
Reference in New Issue