Merge pull request #1702 from SaptakS/correct-chat-close-msg

Fixes the message on warning dialog of chat closing
This commit is contained in:
Micah Lee 2023-06-14 10:22:28 -07:00 committed by GitHub
commit d758448ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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_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_share_description": "Close tab that is sending files?",
"gui_close_tab_warning_receive_description": "Close tab that is receiving 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_website_description": "Close tab that is hosting a website?",
"gui_close_tab_warning_close": "Close", "gui_close_tab_warning_close": "Close",
"gui_close_tab_warning_cancel": "Cancel", "gui_close_tab_warning_cancel": "Cancel",

View File

@ -646,6 +646,8 @@ class Tab(QtWidgets.QWidget):
dialog_text = strings._("gui_close_tab_warning_share_description") dialog_text = strings._("gui_close_tab_warning_share_description")
elif self.mode == self.common.gui.MODE_RECEIVE: elif self.mode == self.common.gui.MODE_RECEIVE:
dialog_text = strings._("gui_close_tab_warning_receive_description") 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: else:
dialog_text = strings._("gui_close_tab_warning_website_description") dialog_text = strings._("gui_close_tab_warning_website_description")