From ef92f92c404b5ef04a52c86a3acaa88f6136fbf1 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Thu, 9 Nov 2017 12:52:44 +1100 Subject: [PATCH] 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 --- onionshare_gui/server_status.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index 9f7f6e3b..99281773 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -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()