diff options
author | Micah Lee <micah@micahflee.com> | 2023-06-14 10:22:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 10:22:28 -0700 |
commit | d758448ac2896d0a434ab63a3b70bfee0b5e6c69 (patch) | |
tree | 9bef6764f9aa877c2de2f16ab2eec7de182716f6 | |
parent | ec8ef54a6aaf4bdc6c3fae01b9b38690d8d814db (diff) | |
parent | b5e113db35db56ac4828c7e15d74bd8d0ab18b5a (diff) | |
download | onionshare-d758448ac2896d0a434ab63a3b70bfee0b5e6c69.tar.gz onionshare-d758448ac2896d0a434ab63a3b70bfee0b5e6c69.zip |
Merge pull request #1702 from SaptakS/correct-chat-close-msg
Fixes the message on warning dialog of chat closing
-rw-r--r-- | desktop/onionshare/resources/locale/en.json | 1 | ||||
-rw-r--r-- | desktop/onionshare/tab/tab.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/desktop/onionshare/resources/locale/en.json b/desktop/onionshare/resources/locale/en.json index c9e6d86a..a94325f0 100644 --- a/desktop/onionshare/resources/locale/en.json +++ b/desktop/onionshare/resources/locale/en.json @@ -203,6 +203,7 @@ "gui_close_tab_warning_persistent_description": "Close persistent tab and lose the onion address it is using?", "gui_close_tab_warning_share_description": "Close tab that is sending files?", "gui_close_tab_warning_receive_description": "Close tab that is receiving files?", + "gui_close_tab_warning_chat_description": "Close tab that is hosting a chat server?", "gui_close_tab_warning_website_description": "Close tab that is hosting a website?", "gui_close_tab_warning_close": "Close", "gui_close_tab_warning_cancel": "Cancel", diff --git a/desktop/onionshare/tab/tab.py b/desktop/onionshare/tab/tab.py index 86c55088..ab6cc3e5 100644 --- a/desktop/onionshare/tab/tab.py +++ b/desktop/onionshare/tab/tab.py @@ -646,6 +646,8 @@ class Tab(QtWidgets.QWidget): dialog_text = strings._("gui_close_tab_warning_share_description") elif self.mode == self.common.gui.MODE_RECEIVE: dialog_text = strings._("gui_close_tab_warning_receive_description") + elif self.mode == self.common.gui.MODE_CHAT: + dialog_text = strings._("gui_close_tab_warning_chat_description") else: dialog_text = strings._("gui_close_tab_warning_website_description") |