set the timeout default to 5 minutes into the future for convenience

This commit is contained in:
Miguel Jacq 2017-11-09 11:56:02 +11:00
parent 2dd6c5527d
commit 44fb6c69ae
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -51,7 +51,7 @@ class ServerStatus(QtWidgets.QVBoxLayout):
self.server_shutdown_timeout_checkbox.setText(strings._("gui_settings_shutdown_timeout_choice", True))
self.server_shutdown_timeout_label = QtWidgets.QLabel(strings._('gui_settings_shutdown_timeout', True))
self.server_shutdown_timeout = QtWidgets.QDateTimeEdit()
self.server_shutdown_timeout.setDateTime(QtCore.QDateTime.currentDateTime())
self.server_shutdown_timeout.setDateTime(QtCore.QDateTime.currentDateTime().addSecs(300))
self.server_shutdown_timeout.setMinimumDateTime(QtCore.QDateTime.currentDateTime())
self.server_shutdown_timeout.setCurrentSectionIndex(4)
self.server_shutdown_timeout_label.hide()