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
1 changed files with 2 additions and 1 deletions

View File

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