Add receive mode warning

This commit is contained in:
Micah Lee 2018-04-25 20:50:56 -07:00
parent 81382318dc
commit df346ad0ab
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
2 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,11 @@ class ReceiveMode(QtWidgets.QWidget):
self.server_share_status_label = server_share_status_label self.server_share_status_label = server_share_status_label
self.system_tray = system_tray self.system_tray = system_tray
# Receive mode info
self.receive_info = QtWidgets.QLabel(strings._('gui_receive_mode_warning', True))
self.receive_info.setMinimumHeight(80)
self.receive_info.setWordWrap(True)
# Server status # Server status
self.server_status = ServerStatus(self.common, self.qtapp, self.app, self.web, False) self.server_status = ServerStatus(self.common, self.qtapp, self.app, self.web, False)
@ -49,6 +54,7 @@ class ReceiveMode(QtWidgets.QWidget):
# Layout # Layout
layout = QtWidgets.QVBoxLayout() layout = QtWidgets.QVBoxLayout()
layout.addWidget(self.receive_info)
layout.addWidget(self.primary_action) layout.addWidget(self.primary_action)
self.setLayout(layout) self.setLayout(layout)

View File

@ -168,7 +168,8 @@
"error_cannot_create_downloads_dir": "Error creating downloads folder: {}", "error_cannot_create_downloads_dir": "Error creating downloads folder: {}",
"error_downloads_dir_not_writable": "The downloads folder isn't writable: {}", "error_downloads_dir_not_writable": "The downloads folder isn't writable: {}",
"receive_mode_downloads_dir": "Files people send you will appear in this folder: {}", "receive_mode_downloads_dir": "Files people send you will appear in this folder: {}",
"receive_mode_warning": "Warning: Some files can hack your computer if you open them! Only open files from people you trust, or if you know what you're doing.", "receive_mode_warning": "Warning: Receive mode lets someone else upload files to your computer. Some files can hack your computer if you open them! Only open files from people you trust, or if you know what you're doing.",
"gui_receive_mode_warning": "<b>Some files can hack your computer if you open them!</b><br>Only open files from people you trust, or if you know what you're doing.",
"receive_mode_received_file": "Received file: {}", "receive_mode_received_file": "Received file: {}",
"gui_mode_share_button": "Share Files", "gui_mode_share_button": "Share Files",
"gui_mode_receive_button": "Receive Files", "gui_mode_receive_button": "Receive Files",