mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Merge branch 'develop' into receiver-mode
This commit is contained in:
commit
4af80de17b
@ -299,10 +299,6 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
self.authenticate_group = QtWidgets.QGroupBox(strings._("gui_settings_authenticate_label", True))
|
self.authenticate_group = QtWidgets.QGroupBox(strings._("gui_settings_authenticate_label", True))
|
||||||
self.authenticate_group.setLayout(authenticate_group_layout)
|
self.authenticate_group.setLayout(authenticate_group_layout)
|
||||||
|
|
||||||
# Test tor settings button
|
|
||||||
self.connection_type_test_button = QtWidgets.QPushButton(strings._('gui_settings_connection_type_test_button', True))
|
|
||||||
self.connection_type_test_button.clicked.connect(self.test_tor_clicked)
|
|
||||||
|
|
||||||
# Put the radios into their own group so they are exclusive
|
# Put the radios into their own group so they are exclusive
|
||||||
connection_type_radio_group_layout = QtWidgets.QVBoxLayout()
|
connection_type_radio_group_layout = QtWidgets.QVBoxLayout()
|
||||||
connection_type_radio_group_layout.addWidget(self.connection_type_bundled_radio)
|
connection_type_radio_group_layout.addWidget(self.connection_type_bundled_radio)
|
||||||
@ -312,16 +308,6 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
connection_type_radio_group = QtWidgets.QGroupBox(strings._("gui_settings_connection_type_label", True))
|
connection_type_radio_group = QtWidgets.QGroupBox(strings._("gui_settings_connection_type_label", True))
|
||||||
connection_type_radio_group.setLayout(connection_type_radio_group_layout)
|
connection_type_radio_group.setLayout(connection_type_radio_group_layout)
|
||||||
|
|
||||||
# Connection type layout
|
|
||||||
connection_type_group_layout = QtWidgets.QVBoxLayout()
|
|
||||||
connection_type_group_layout.addWidget(self.connection_type_control_port_extras)
|
|
||||||
connection_type_group_layout.addWidget(self.connection_type_socket_file_extras)
|
|
||||||
connection_type_group_layout.addWidget(self.connection_type_socks)
|
|
||||||
connection_type_group_layout.addWidget(self.authenticate_group)
|
|
||||||
connection_type_group_layout.addWidget(self.connection_type_test_button)
|
|
||||||
connection_type_group = QtWidgets.QGroupBox()
|
|
||||||
connection_type_group.setLayout(connection_type_group_layout)
|
|
||||||
|
|
||||||
# The Bridges options are not exclusive (enabling Bridges offers obfs4 or custom bridges)
|
# The Bridges options are not exclusive (enabling Bridges offers obfs4 or custom bridges)
|
||||||
connection_type_bridges_radio_group_layout = QtWidgets.QVBoxLayout()
|
connection_type_bridges_radio_group_layout = QtWidgets.QVBoxLayout()
|
||||||
connection_type_bridges_radio_group_layout.addWidget(self.bridges)
|
connection_type_bridges_radio_group_layout.addWidget(self.bridges)
|
||||||
@ -329,6 +315,22 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
self.connection_type_bridges_radio_group.setLayout(connection_type_bridges_radio_group_layout)
|
self.connection_type_bridges_radio_group.setLayout(connection_type_bridges_radio_group_layout)
|
||||||
self.connection_type_bridges_radio_group.hide()
|
self.connection_type_bridges_radio_group.hide()
|
||||||
|
|
||||||
|
# Test tor settings button
|
||||||
|
self.connection_type_test_button = QtWidgets.QPushButton(strings._('gui_settings_connection_type_test_button', True))
|
||||||
|
self.connection_type_test_button.clicked.connect(self.test_tor_clicked)
|
||||||
|
connection_type_test_button_layout = QtWidgets.QHBoxLayout()
|
||||||
|
connection_type_test_button_layout.addWidget(self.connection_type_test_button)
|
||||||
|
connection_type_test_button_layout.addStretch()
|
||||||
|
|
||||||
|
# Connection type layout
|
||||||
|
connection_type_layout = QtWidgets.QVBoxLayout()
|
||||||
|
connection_type_layout.addWidget(self.connection_type_control_port_extras)
|
||||||
|
connection_type_layout.addWidget(self.connection_type_socket_file_extras)
|
||||||
|
connection_type_layout.addWidget(self.connection_type_socks)
|
||||||
|
connection_type_layout.addWidget(self.authenticate_group)
|
||||||
|
connection_type_layout.addWidget(self.connection_type_bridges_radio_group)
|
||||||
|
connection_type_layout.addLayout(connection_type_test_button_layout)
|
||||||
|
|
||||||
# Buttons
|
# Buttons
|
||||||
self.save_button = QtWidgets.QPushButton(strings._('gui_settings_button_save', True))
|
self.save_button = QtWidgets.QPushButton(strings._('gui_settings_button_save', True))
|
||||||
self.save_button.clicked.connect(self.save_clicked)
|
self.save_button.clicked.connect(self.save_clicked)
|
||||||
@ -359,8 +361,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||||||
|
|
||||||
right_col_layout = QtWidgets.QVBoxLayout()
|
right_col_layout = QtWidgets.QVBoxLayout()
|
||||||
right_col_layout.addWidget(connection_type_radio_group)
|
right_col_layout.addWidget(connection_type_radio_group)
|
||||||
right_col_layout.addWidget(connection_type_group)
|
right_col_layout.addLayout(connection_type_layout)
|
||||||
right_col_layout.addWidget(self.connection_type_bridges_radio_group)
|
|
||||||
right_col_layout.addWidget(self.tor_status)
|
right_col_layout.addWidget(self.tor_status)
|
||||||
right_col_layout.addStretch()
|
right_col_layout.addStretch()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user