Commented out runUpdateSlot()

This commit is contained in:
BuildTools 2021-03-24 20:59:41 +01:00
parent 65d016bd36
commit ba9660922d

View file

@ -3067,22 +3067,22 @@ class MainProgram(QtCore.QObject):
self.widget.gainAttention[QtWidgets.QWidget].connect(self.alertWindow) self.widget.gainAttention[QtWidgets.QWidget].connect(self.alertWindow)
@QtCore.pyqtSlot() #@QtCore.pyqtSlot()
def runUpdateSlot(self): #def runUpdateSlot(self):
q = queue.Queue(1) # q = queue.Queue(1)
s = threading.Thread(target=version.updateCheck, args=(q,)) # s = threading.Thread(target=version.updateCheck, args=(q,))
w = threading.Thread(target=self.showUpdate, args=(q,)) # w = threading.Thread(target=self.showUpdate, args=(q,))
w.start() # w.start()
s.start() # s.start()
self.widget.config.set('lastUCheck', int(time())) # self.widget.config.set('lastUCheck', int(time()))
check = self.widget.config.checkForUpdates() # check = self.widget.config.checkForUpdates()
if check == 0: # if check == 0:
seconds = 60 * 60 * 24 # seconds = 60 * 60 * 24
elif check == 1: # elif check == 1:
seconds = 60 * 60 * 24 * 7 # seconds = 60 * 60 * 24 * 7
else: # else:
return # return
QtCore.QTimer.singleShot(1000*seconds, self, QtCore.SLOT('runUpdateSlot()')) # QtCore.QTimer.singleShot(1000*seconds, self, QtCore.SLOT('runUpdateSlot()'))
@QtCore.pyqtSlot(QtWidgets.QWidget) @QtCore.pyqtSlot(QtWidgets.QWidget)
def alertWindow(self, widget): def alertWindow(self, widget):