mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-10 10:25:03 -04:00
Merge branch 'mig5-updatethread_reload_settings_before_save'
This commit is contained in:
commit
af5d4a77a4
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,8 @@ class UpdateChecker(QtCore.QObject):
|
||||||
|
|
||||||
# Update the last checked timestamp (dropping the seconds and milliseconds)
|
# Update the last checked timestamp (dropping the seconds and milliseconds)
|
||||||
timestamp = datetime.datetime.now().replace(microsecond=0).replace(second=0).timestamp()
|
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.set('autoupdate_timestamp', timestamp)
|
||||||
settings.save()
|
settings.save()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue