Skip to content

Commit

Permalink
Merge pull request #6736 from drew2a/feature/remove_exit_node_checkbox
Browse files Browse the repository at this point in the history
Remove allow_exit_node_checkbox
  • Loading branch information
drew2a authored Jan 21, 2022
2 parents 7d6cf40 + 62e4773 commit 4905494
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
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

0 comments on commit 4905494

Please sign in to comment.