mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-08 01:15:00 -04:00
use QDateTimeEdit instead of a spinbox for selecting a future date/time to auto-stop share
This commit is contained in:
parent
a4b8a71c68
commit
481f33c822
4 changed files with 12 additions and 8 deletions
|
@ -374,7 +374,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
|
||||
# If the auto-shutdown timer has stopped, stop the server
|
||||
if self.server_status.status == self.server_status.STATUS_STARTED:
|
||||
if self.app.shutdown_timer and self.server_status.server_shutdown_timeout.value() > 0:
|
||||
if self.app.shutdown_timer and self.server_status.timeout > 0:
|
||||
if not self.app.shutdown_timer.is_alive():
|
||||
self.server_status.stop_server()
|
||||
self.status_bar.showMessage(strings._('close_on_timeout',True))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue