From ba9660922d3a8d0dbc0ad592b6ef615336a0d525 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 24 Mar 2021 20:59:41 +0100 Subject: [PATCH] Commented out runUpdateSlot() --- pesterchum.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pesterchum.py b/pesterchum.py index 89df2b0..0fa7c55 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -3067,22 +3067,22 @@ class MainProgram(QtCore.QObject): self.widget.gainAttention[QtWidgets.QWidget].connect(self.alertWindow) - @QtCore.pyqtSlot() - def runUpdateSlot(self): - q = queue.Queue(1) - s = threading.Thread(target=version.updateCheck, args=(q,)) - w = threading.Thread(target=self.showUpdate, args=(q,)) - w.start() - s.start() - self.widget.config.set('lastUCheck', int(time())) - check = self.widget.config.checkForUpdates() - if check == 0: - seconds = 60 * 60 * 24 - elif check == 1: - seconds = 60 * 60 * 24 * 7 - else: - return - QtCore.QTimer.singleShot(1000*seconds, self, QtCore.SLOT('runUpdateSlot()')) + #@QtCore.pyqtSlot() + #def runUpdateSlot(self): + # q = queue.Queue(1) + # s = threading.Thread(target=version.updateCheck, args=(q,)) + # w = threading.Thread(target=self.showUpdate, args=(q,)) + # w.start() + # s.start() + # self.widget.config.set('lastUCheck', int(time())) + # check = self.widget.config.checkForUpdates() + # if check == 0: + # seconds = 60 * 60 * 24 + # elif check == 1: + # seconds = 60 * 60 * 24 * 7 + # else: + # return + # QtCore.QTimer.singleShot(1000*seconds, self, QtCore.SLOT('runUpdateSlot()')) @QtCore.pyqtSlot(QtWidgets.QWidget) def alertWindow(self, widget):