mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-14 09:56:29 -04:00
Add receive mode warning
This commit is contained in:
parent
5a1d649e88
commit
15d42cb6a4
@ -38,6 +38,11 @@ class ReceiveMode(QtWidgets.QWidget):
|
||||
self.server_share_status_label = server_share_status_label
|
||||
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
|
||||
self.server_status = ServerStatus(self.common, self.qtapp, self.app, self.web, False)
|
||||
|
||||
@ -49,6 +54,7 @@ class ReceiveMode(QtWidgets.QWidget):
|
||||
|
||||
# Layout
|
||||
layout = QtWidgets.QVBoxLayout()
|
||||
layout.addWidget(self.receive_info)
|
||||
layout.addWidget(self.primary_action)
|
||||
self.setLayout(layout)
|
||||
|
||||
|
@ -168,7 +168,8 @@
|
||||
"error_cannot_create_downloads_dir": "Error creating downloads folder: {}",
|
||||
"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_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: {}",
|
||||
"gui_mode_share_button": "Share Files",
|
||||
"gui_mode_receive_button": "Receive Files",
|
||||
|
Loading…
x
Reference in New Issue
Block a user