Merge branch 'updatethread_reload_settings_before_save' of https://github.com/mig5/onionshare into mig5-updatethread_reload_settings_before_save

This commit is contained in:
Micah Lee 2018-01-17 16:00:30 -08:00
commit 14bc4d4ccc
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

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()