summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2020-06-07 15:29:27 +1000
committerMiguel Jacq <mig@mig5.net>2020-06-07 15:29:27 +1000
commita93cba35047147773a01ecb11e014a765fdfd2f2 (patch)
treef84c3186902249c2c4cef563eda775ed1913116b /onionshare_gui
parent1c424500f0b0e1e2bb7b17ce144cce16e20e5493 (diff)
downloadonionshare-a93cba35047147773a01ecb11e014a765fdfd2f2.tar.gz
onionshare-a93cba35047147773a01ecb11e014a765fdfd2f2.zip
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 aa4518b5..640a1c45 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")