mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-06 05:49:16 -04:00
Set the server status indicator to 'Scheduled' when in Website Mode and autostart timer is in use, to match the other modes
This commit is contained in:
parent
ff15c045e6
commit
71164c16d0
1 changed files with 8 additions and 3 deletions
|
@ -306,9 +306,14 @@ class Tab(QtWidgets.QWidget):
|
||||||
strings._("gui_status_indicator_share_stopped")
|
strings._("gui_status_indicator_share_stopped")
|
||||||
)
|
)
|
||||||
elif self.website_mode.server_status.status == ServerStatus.STATUS_WORKING:
|
elif self.website_mode.server_status.status == ServerStatus.STATUS_WORKING:
|
||||||
self.set_server_status_indicator_working(
|
if self.website_mode.server_status.autostart_timer_datetime:
|
||||||
strings._("gui_status_indicator_share_working")
|
self.set_server_status_indicator_working(
|
||||||
)
|
strings._("gui_status_indicator_share_scheduled")
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.set_server_status_indicator_working(
|
||||||
|
strings._("gui_status_indicator_share_working")
|
||||||
|
)
|
||||||
elif self.website_mode.server_status.status == ServerStatus.STATUS_STARTED:
|
elif self.website_mode.server_status.status == ServerStatus.STATUS_STARTED:
|
||||||
self.set_server_status_indicator_started(
|
self.set_server_status_indicator_started(
|
||||||
strings._("gui_status_indicator_share_started")
|
strings._("gui_status_indicator_share_started")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue