From a28e40ea35c9767ac5be39820b8d224ecffde25a Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Fri, 9 Mar 2012 19:16:14 +0100 Subject: [PATCH] Add option(on by default) to move selection when moving torrents up/down the queue. Known bug: Incorrect behavior when trying to move bottommost torrents to the bottom, has no impact besides being unexpected. --- deluge/ui/console/modes/alltorrents.py | 3 ++- deluge/ui/console/modes/preference_panes.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/modes/alltorrents.py b/deluge/ui/console/modes/alltorrents.py index ded504379..617be0f01 100644 --- a/deluge/ui/console/modes/alltorrents.py +++ b/deluge/ui/console/modes/alltorrents.py @@ -170,7 +170,8 @@ DEFAULT_PREFS = { "downloaded_width":13, "uploaded_width":13, "owner_width":10, - "ignore_duplicate_lines": False + "ignore_duplicate_lines": False, + "move_selection": True } column_pref_names = ["queue","name","size","state", diff --git a/deluge/ui/console/modes/preference_panes.py b/deluge/ui/console/modes/preference_panes.py index f015ebe94..0dfea2340 100644 --- a/deluge/ui/console/modes/preference_panes.py +++ b/deluge/ui/console/modes/preference_panes.py @@ -312,6 +312,7 @@ class InterfacePane(BasePane): BasePane.__init__(self,offset,parent,width) self.add_header("General") self.add_checked_input("ignore_duplicate_lines","Do not store duplicate input in history",parent.console_config["ignore_duplicate_lines"]) + self.add_checked_input("move_selection","Move selection when moving torrents in the queue",parent.console_config["move_selection"]) self.add_header("Columns To Display") for cpn in deluge.ui.console.modes.alltorrents.column_pref_names: pn = "show_%s"%cpn