summaryrefslogtreecommitdiff
path: root/onionshare_gui
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2020-08-20 17:56:56 -0400
committerMicah Lee <micah@micahflee.com>2020-08-20 17:56:56 -0400
commit218f9a651c7de05f7be12c6adfd52d6c8fc53edc (patch)
tree082ffc5f06e91e40ed4095a759b1ddb602e0d346 /onionshare_gui
parentf65e7a350764aad5165d2cbe68ace8f3777566e1 (diff)
downloadonionshare-218f9a651c7de05f7be12c6adfd52d6c8fc53edc.tar.gz
onionshare-218f9a651c7de05f7be12c6adfd52d6c8fc53edc.zip
Show chat mode server status widgets in the tab bar as well
Diffstat (limited to 'onionshare_gui')
-rw-r--r--onionshare_gui/tab/tab.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/onionshare_gui/tab/tab.py b/onionshare_gui/tab/tab.py
index 66cefdb0..604d1acf 100644
--- a/onionshare_gui/tab/tab.py
+++ b/onionshare_gui/tab/tab.py
@@ -399,6 +399,25 @@ class Tab(QtWidgets.QWidget):
self.set_server_status_indicator_started(
strings._("gui_status_indicator_receive_started")
)
+ elif self.mode == self.common.gui.MODE_CHAT:
+ # Chat mode
+ if self.chat_mode.server_status.status == ServerStatus.STATUS_STOPPED:
+ self.set_server_status_indicator_stopped(
+ strings._("gui_status_indicator_receive_stopped")
+ )
+ elif self.chat_mode.server_status.status == ServerStatus.STATUS_WORKING:
+ if self.settings.get("general", "autostart_timer"):
+ self.set_server_status_indicator_working(
+ strings._("gui_status_indicator_receive_scheduled")
+ )
+ else:
+ self.set_server_status_indicator_working(
+ strings._("gui_status_indicator_receive_working")
+ )
+ elif self.chat_mode.server_status.status == ServerStatus.STATUS_STARTED:
+ self.set_server_status_indicator_started(
+ strings._("gui_status_indicator_receive_started")
+ )
def set_server_status_indicator_stopped(self, label_text):
self.change_icon.emit(self.tab_id, "images/server_stopped.png")