On subsequent shares, the default time should nudge 5 minutes ahead of the current time again, instead of 5 minutes since the time OnionShare was opened

This commit is contained in:
Miguel Jacq 2017-11-09 12:52:44 +11:00
parent b618d8c15d
commit 9aabc51edc
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -101,6 +101,8 @@ class ServerStatus(QtWidgets.QVBoxLayout):
if checked:
self.server_shutdown_timeout_checkbox.hide()
self.server_shutdown_timeout_label.show()
# Reset the default timer to 5 minutes into the future after toggling the option on
self.server_shutdown_timeout.setDateTime(QtCore.QDateTime.currentDateTime().addSecs(300))
self.server_shutdown_timeout.show()
else:
self.server_shutdown_timeout_checkbox.show()