mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
update time check up to 1 day
This commit is contained in:
parent
1fd2912e92
commit
e3b564b72e
1 changed files with 2 additions and 1 deletions
|
@ -78,7 +78,8 @@ class LatestVersionFinder(QThread):
|
|||
if resp['latestVersion'] > ankiqt.appVersion:
|
||||
self.emit(SIGNAL("newVerAvail"), resp)
|
||||
diff = resp['currentTime'] - time.time()
|
||||
if abs(diff) > 300:
|
||||
# a fairly liberal time check - sync is more strict
|
||||
if abs(diff) > 86400:
|
||||
self.emit(SIGNAL("clockIsOff"), diff)
|
||||
|
||||
class Updater(QThread):
|
||||
|
|
Loading…
Reference in a new issue