Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove allow_exit_node_checkbox #6736

Merged
merged 1 commit into from
Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions src/tribler-gui/tribler_gui/qt_resources/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -2233,55 +2233,6 @@ color: white;</string>
<property name="bottomMargin">
<number>12</number>
</property>
<item>
<widget class="QLabel" name="tribler_profile_header_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">font-weight: bold;
color: white;</string>
</property>
<property name="text">
<string>Anonymity</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="allow_exit_node_checkbox">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Allow Tribler to be an exit node</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_19">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>By allowing Tribler to be an exit node, your computer will act as a proxy for other Tribler users' bittorrent traffic, be it seeding or downloading. Check your local laws and make sure you are aware of the implications of enabling this checkbox.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
Expand Down
3 changes: 1 addition & 2 deletions src/tribler-gui/tribler_gui/widgets/settingspage.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ def initialize_with_settings(self, settings):
self.window().seeding_ratio_combobox.setCurrentIndex(ind)

# Anonymity settings
self.window().allow_exit_node_checkbox.setChecked(settings['tunnel_community']['exitnode_enabled'])
self.window().number_hops_slider.setValue(int(settings['download_defaults']['number_hops']))
connect(self.window().number_hops_slider.valueChanged, self.update_anonymity_cost_label)
self.update_anonymity_cost_label(int(settings['download_defaults']['number_hops']))
Expand Down Expand Up @@ -505,7 +504,7 @@ def save_settings(self, checked):
)
return

settings_data['tunnel_community']['exitnode_enabled'] = self.window().allow_exit_node_checkbox.isChecked()
settings_data['tunnel_community']['exitnode_enabled'] = False
settings_data['download_defaults']['number_hops'] = self.window().number_hops_slider.value()
settings_data['download_defaults'][
'anonymity_enabled'
Expand Down