mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
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:
parent
4261670b59
commit
bbb6c8ddf8
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user