Fixes the message on warning dialog of chat closing

This commit is contained in:
Saptak S 2023-06-14 21:37:54 +05:30
parent ec8ef54a6a
commit b5e113db35
No known key found for this signature in database
GPG Key ID: 7B7F1772C0C6FCBF
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_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",

View File

@ -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")