From 14bfa241957e56852937793172d24f72a29f4837 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Thu, 8 Mar 2012 14:46:25 +0100 Subject: [PATCH] Add smarter selection selection for torrent detail view - highlight directories with selected files inside as partially or fully selected, select not only directories but also files inside. --- deluge/ui/console/modes/torrentdetail.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index 7f02a71cb..d1197e8b7 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -347,10 +347,9 @@ class TorrentDetail(BaseMode, component.Component): return (off,idx) - - def _get_file_list_length(self, file_list=None): + def __get_file_list_length(self, file_list=None): """ - Returns amount of elements in file list, including files in (expanded) folders. + Counts length of the displayed file list. """ if file_list == None: file_list = self.file_list