mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 14:44:21 +00:00
[GTK3] Restore and update expand_row code
This commit is contained in:
parent
f160d6312f
commit
b29b6fe69f
@ -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…
x
Reference in New Issue
Block a user