Fix update check bug
This commit is contained in:
parent
90f7719322
commit
61e27ce3a2
@ -689,13 +689,13 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
self.autoPlayPushButton.setText(getMessage("noautoplay-guipushbuttonlabel"))
|
self.autoPlayPushButton.setText(getMessage("noautoplay-guipushbuttonlabel"))
|
||||||
|
|
||||||
def automaticUpdateCheck(self):
|
def automaticUpdateCheck(self):
|
||||||
|
currentDateTime = datetime.utcnow()
|
||||||
if not self.config['checkForUpdatesAutomatically']:
|
if not self.config['checkForUpdatesAutomatically']:
|
||||||
return
|
return
|
||||||
if self.config['lastCheckedForUpdates']:
|
if self.config['lastCheckedForUpdates']:
|
||||||
configLastChecked = datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f")
|
configLastChecked = datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f")
|
||||||
if self.lastCheckedForUpdates is None or configLastChecked > self.lastCheckedForUpdates:
|
if self.lastCheckedForUpdates is None or configLastChecked > self.lastCheckedForUpdates:
|
||||||
self.lastCheckedForUpdates = configLastChecked
|
self.lastCheckedForUpdates = configLastChecked
|
||||||
currentDateTime = datetime.utcnow()
|
|
||||||
if self.lastCheckedForUpdates is None:
|
if self.lastCheckedForUpdates is None:
|
||||||
self.checkForUpdates()
|
self.checkForUpdates()
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user