From e996b5f635ee158140378985ba0c3d80b23eb279 Mon Sep 17 00:00:00 2001 From: Star Chen Date: Mon, 19 Jul 2021 12:26:01 +0800 Subject: [PATCH] applets: fix warning timing --- artiq/applets/plot_hist.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/applets/plot_hist.py b/artiq/applets/plot_hist.py index 71f227ac3..b3493c836 100755 --- a/artiq/applets/plot_hist.py +++ b/artiq/applets/plot_hist.py @@ -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()