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.

This commit is contained in:
Asmageddon 2012-03-08 14:46:25 +01:00
parent 8a261b26e8
commit 14bfa24195
1 changed files with 2 additions and 3 deletions

View File

@ -347,10 +347,9 @@ class TorrentDetail(BaseMode, component.Component):
return (off,idx) 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: if file_list == None:
file_list = self.file_list file_list = self.file_list