aboutsummaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-06-29 12:42:07 -0700
committerGitHub <noreply@github.com>2020-06-29 12:42:07 -0700
commitf65e50f399f1716162343d84b6003957adc46185 (patch)
treeaa7e0599092f9918b2d2b27999396096e7e1c700 /onionshare_gui
parent8395fef88708e22b86a81cb1789f4247eb7efcd8 (diff)
parenta93cba35047147773a01ecb11e014a765fdfd2f2 (diff)
downloadonionshare-f65e50f399f1716162343d84b6003957adc46185.tar.gz
onionshare-f65e50f399f1716162343d84b6003957adc46185.zip
Merge pull request #1133 from mig5/website_mode_autostart_scheduled_status
Set the server status indicator to 'Scheduled' when in Website Mode and autostart timer is in use, to match the other modes
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/tab/tab.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/onionshare_gui/tab/tab.py b/onionshare_gui/tab/tab.py
index 5117618f..5d1fde55 100644
--- a/onionshare_gui/tab/tab.py
+++ b/onionshare_gui/tab/tab.py
@@ -306,9 +306,14 @@ class Tab(QtWidgets.QWidget):
strings._("gui_status_indicator_share_stopped")
)
elif self.website_mode.server_status.status == ServerStatus.STATUS_WORKING:
- self.set_server_status_indicator_working(
- strings._("gui_status_indicator_share_working")
- )
+ if self.website_mode.server_status.autostart_timer_datetime:
+ 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:
self.set_server_status_indicator_started(
strings._("gui_status_indicator_share_started")