Re-load the settings in the UpdateCheck thread before saving, in case settings have changed in between starting thread and saving, so we don't clobber them

This commit is contained in:
Miguel Jacq 2018-01-18 08:43:14 +11:00
parent 4261670b59
commit bbb6c8ddf8
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -130,6 +130,8 @@ class UpdateChecker(QtCore.QObject):
# Update the last checked timestamp (dropping the seconds and milliseconds)
timestamp = datetime.datetime.now().replace(microsecond=0).replace(second=0).timestamp()
# Re-load the settings first before saving, just in case they've changed since we started our thread
settings.load()
settings.set('autoupdate_timestamp', timestamp)
settings.save()