aboutsummaryrefslogtreecommitdiff
path: root/desktop/src
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2021-05-10 15:05:16 +1000
committerMiguel Jacq <mig@mig5.net>2021-05-10 15:05:16 +1000
commitb39162f33c963bc2740b5f8dc47e1392a42b9189 (patch)
treee86bba2a4dc5a3401496fc4472db41492635587f /desktop/src
parente067fc2963fb86afb4e51d816dea13f701cff70d (diff)
downloadonionshare-b39162f33c963bc2740b5f8dc47e1392a42b9189.tar.gz
onionshare-b39162f33c963bc2740b5f8dc47e1392a42b9189.zip
Add tests for Chat, and fix the server_status message bar when in Chat mode
Diffstat (limited to 'desktop/src')
-rw-r--r--desktop/src/onionshare/resources/locale/en.json6
-rw-r--r--desktop/src/onionshare/tab/tab.py8
2 files changed, 9 insertions, 5 deletions
diff --git a/desktop/src/onionshare/resources/locale/en.json b/desktop/src/onionshare/resources/locale/en.json
index 8a69142c..a847264b 100644
--- a/desktop/src/onionshare/resources/locale/en.json
+++ b/desktop/src/onionshare/resources/locale/en.json
@@ -101,6 +101,10 @@
"gui_status_indicator_receive_working": "Starting…",
"gui_status_indicator_receive_scheduled": "Scheduled…",
"gui_status_indicator_receive_started": "Receiving",
+ "gui_status_indicator_chat_stopped": "Ready to chat",
+ "gui_status_indicator_chat_working": "Starting…",
+ "gui_status_indicator_chat_scheduled": "Scheduled…",
+ "gui_status_indicator_chat_started": "Chatting",
"gui_file_info": "{} files, {}",
"gui_file_info_single": "{} file, {}",
"history_in_progress_tooltip": "{} in progress",
@@ -198,4 +202,4 @@
"error_port_not_available": "OnionShare port not available",
"history_receive_read_message_button": "Read Message",
"error_tor_protocol_error": "There was an error with Tor: {}"
-} \ No newline at end of file
+}
diff --git a/desktop/src/onionshare/tab/tab.py b/desktop/src/onionshare/tab/tab.py
index d39cf826..09982de9 100644
--- a/desktop/src/onionshare/tab/tab.py
+++ b/desktop/src/onionshare/tab/tab.py
@@ -452,20 +452,20 @@ class Tab(QtWidgets.QWidget):
# Chat mode
if self.chat_mode.server_status.status == ServerStatus.STATUS_STOPPED:
self.set_server_status_indicator_stopped(
- strings._("gui_status_indicator_receive_stopped")
+ strings._("gui_status_indicator_chat_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")
+ strings._("gui_status_indicator_chat_scheduled")
)
else:
self.set_server_status_indicator_working(
- strings._("gui_status_indicator_receive_working")
+ strings._("gui_status_indicator_chat_working")
)
elif self.chat_mode.server_status.status == ServerStatus.STATUS_STARTED:
self.set_server_status_indicator_started(
- strings._("gui_status_indicator_receive_started")
+ strings._("gui_status_indicator_chat_started")
)
def set_server_status_indicator_stopped(self, label_text):