Skip to content

Commit ec11834

Browse files
authored
Add check for updates and follow PEP 8 Style
1 parent 37a8220 commit ec11834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,9 @@ def on_clicked_row(self, item):
343343
def on_clicked_button_refresh(self):
344344
self.pushButtonRefresh.setEnabled(False)
345345

346-
timer = QtCore.QTimer()
347-
timer.timeout.connect(lambda: self.pushButtonRefresh.setEnabled(True))
348-
timer.start(30000)
346+
self.timer = QtCore.QTimer()
347+
self.timer.timeout.connect(lambda: self.pushButtonRefresh.setEnabled(True))
348+
self.timer.start(30000)
349349

350350
self.tableWidget.setRowCount(0) # Remove all rows
351351

0 commit comments

Comments
 (0)