From 61e27ce3a2d2826663bc3f2801920c47c2c5f8e7 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sat, 3 Jan 2015 20:32:55 +0000 Subject: [PATCH] Fix update check bug --- syncplay/ui/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 51105db..9a95070 100644 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -689,13 +689,13 @@ class MainWindow(QtGui.QMainWindow): self.autoPlayPushButton.setText(getMessage("noautoplay-guipushbuttonlabel")) def automaticUpdateCheck(self): + currentDateTime = datetime.utcnow() if not self.config['checkForUpdatesAutomatically']: return if self.config['lastCheckedForUpdates']: configLastChecked = datetime.strptime(self.config["lastCheckedForUpdates"], "%Y-%m-%d %H:%M:%S.%f") if self.lastCheckedForUpdates is None or configLastChecked > self.lastCheckedForUpdates: self.lastCheckedForUpdates = configLastChecked - currentDateTime = datetime.utcnow() if self.lastCheckedForUpdates is None: self.checkForUpdates() else: