mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-27 18:01:16 -05:00
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:
parent
b618d8c15d
commit
9aabc51edc
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user