diff --git a/deluge/core/preferencesmanager.py b/deluge/core/preferencesmanager.py
index 7e5c207a1f..9207f26e49 100644
--- a/deluge/core/preferencesmanager.py
+++ b/deluge/core/preferencesmanager.py
@@ -85,6 +85,7 @@
'max_active_downloading': 3,
'max_active_limit': 8,
'dont_count_slow_torrents': False,
+ 'announce_to_all_trackers': True,
'queue_new_to_top': False,
'stop_seed_at_ratio': False,
'remove_seed_at_ratio': False,
@@ -367,6 +368,9 @@ def _on_set_max_active_limit(self, key, value):
def _on_set_dont_count_slow_torrents(self, key, value):
self.core.apply_session_setting('dont_count_slow_torrents', value)
+ def _on_set_announce_to_all_trackers(self, key, value):
+ self.core.apply_session_setting('announce_to_all_trackers', value)
+
def _on_set_send_info(self, key, value):
"""sends anonymous stats home"""
log.debug('Sending anonymous stats..')
diff --git a/deluge/ui/console/modes/preferences/preference_panes.py b/deluge/ui/console/modes/preferences/preference_panes.py
index b47bc4b079..6d8d997971 100644
--- a/deluge/ui/console/modes/preferences/preference_panes.py
+++ b/deluge/ui/console/modes/preferences/preference_panes.py
@@ -580,6 +580,11 @@ def create_pane(self, core_conf, console_config):
'Ignore slow torrents',
core_conf['dont_count_slow_torrents'],
)
+ self.add_checked_input(
+ 'announce_to_all_trackers',
+ 'Announce to all trackers of the same tier',
+ core_conf['announce_to_all_trackers'],
+ )
self.add_checked_input(
'auto_manage_prefer_seeds',
'Prefer seeding torrents',
diff --git a/deluge/ui/gtk3/glade/preferences_dialog.ui b/deluge/ui/gtk3/glade/preferences_dialog.ui
index aa1531d759..64ce73fb84 100644
--- a/deluge/ui/gtk3/glade/preferences_dialog.ui
+++ b/deluge/ui/gtk3/glade/preferences_dialog.ui
@@ -2204,6 +2204,18 @@ used sparingly.
1
+
+
+
+ 2
+
+