From b5e113db35db56ac4828c7e15d74bd8d0ab18b5a Mon Sep 17 00:00:00 2001 From: Saptak S Date: Wed, 14 Jun 2023 21:37:54 +0530 Subject: Fixes the message on warning dialog of chat closing --- desktop/onionshare/resources/locale/en.json | 1 + desktop/onionshare/tab/tab.py | 2 ++ 2 files changed, 3 insertions(+) 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") -- cgit v1.2.3-54-g00ecf