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.

This commit is contained in:
Asmageddon 2012-03-09 19:16:14 +01:00
parent 14bfa24195
commit a28e40ea35
2 changed files with 3 additions and 1 deletions

View File

@ -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",

View File

@ -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