mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
[GTK3] Restore and update expand_row code
This commit is contained in:
parent
f160d6312f
commit
b29b6fe69f
2 changed files with 6 additions and 8 deletions
|
@ -348,9 +348,8 @@ class AddTorrentDialog(component.Component):
|
|||
_file, _file['path'], idx, _file.get('download', True), split_files
|
||||
)
|
||||
self.add_files(None, split_files)
|
||||
# FIXME add back expand_row
|
||||
# self.listview_files.expand_row(b'0', False)
|
||||
self.listview_files.expand_all()
|
||||
root = Gtk.TreePath.new_first()
|
||||
self.listview_files.expand_row(root, False)
|
||||
|
||||
def prepare_file(self, _file, file_name, file_num, download, files_storage):
|
||||
first_slash_index = file_name.find(os.path.sep)
|
||||
|
@ -1039,9 +1038,8 @@ class AddTorrentDialog(component.Component):
|
|||
|
||||
# We need to re-expand the view because it might contracted
|
||||
# if we change the root iter
|
||||
# FIXME add back expand_row
|
||||
# self.listview_files.expand_row(b'0', False)
|
||||
self.listview_files.expand_all()
|
||||
root = Gtk.TreePath.new_first()
|
||||
self.listview_files.expand_row(root, False)
|
||||
else:
|
||||
# This was a simple folder rename without any splits, so just
|
||||
# change the path for itr
|
||||
|
|
|
@ -377,8 +377,8 @@ class FilesTab(Tab):
|
|||
def update_files(self):
|
||||
with listview_replace_treestore(self.listview):
|
||||
self.prepare_file_store(self.files_list[self.torrent_id])
|
||||
# FIXME
|
||||
# self.listview.expand_row(b'0', False)
|
||||
root = Gtk.TreePath.new_first()
|
||||
self.listview.expand_row(root, False)
|
||||
|
||||
def get_selected_files(self):
|
||||
"""Returns a list of file indexes that are selected."""
|
||||
|
|
Loading…
Add table
Reference in a new issue