Skip to content

Commit

Permalink
T
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed May 16, 2024
1 parent 6a1ed59 commit 98d637d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deluge/ui/gtk3/files_tab.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
FILE_PRIORITY['High']: 'go-up-symbolic',
}

G_ICON_DIRECTORY = Gio.content_type_get_icon('inode/directory')
#G_ICON_DIRECTORY = Gio.content_type_get_icon('inode/directory')


def cell_priority(column, cell, model, row, data):
Expand Down Expand Up @@ -368,7 +368,7 @@ def add_files(self, parent_iter, split_files):
for key, value in split_files.items():
if key.endswith('/'):
chunk_iter = self.treestore.append(
parent_iter, [key, 0, '', 0, 0, -1, G_ICON_DIRECTORY]
parent_iter, [key, 0, '', 0, 0, -1]
)
chunk_size = self.add_files(chunk_iter, value)
self.treestore.set(chunk_iter, 1, chunk_size)
Expand Down Expand Up @@ -664,7 +664,7 @@ def _on_torrentfilerenamed_event(self, torrent_id, index, name):
p_itr = self.get_iter_at_path('/'.join(parent_path[:i]) + '/')
p_itr = self.treestore.append(
p_itr,
[parent_path[i] + '/', 0, '', 0, 0, -1, G_ICON_DIRECTORY],
[parent_path[i] + '/', 0, '', 0, 0, -1],
)
p_itr = self.get_iter_at_path('/'.join(parent_path) + '/')
old_name_itr = self.get_iter_at_path(old_name)
Expand All @@ -684,7 +684,7 @@ def _on_torrentfilerenamed_event(self, torrent_id, index, name):
parent_iter = None
for f in new_folders:
parent_iter = self.treestore.append(
parent_iter, [f + '/', 0, '', 0, 0, -1, G_ICON_DIRECTORY]
parent_iter, [f + '/', 0, '', 0, 0, -1]
)
child = self.get_iter_at_path(old_name)
self.treestore.append(
Expand Down Expand Up @@ -792,7 +792,7 @@ def _on_torrentfolderrenamed_event(self, torrent_id, old_folder, new_folder):
if new_split:
for ns in new_split[:-1]:
parent = self.treestore.append(
parent, [ns + '/', 0, '', 0, 0, -1, G_ICON_DIRECTORY]
parent, [ns + '/', 0, '', 0, 0, -1]
)

self.treestore[old_folder_iter][0] = new_split[-1] + '/'
Expand Down

0 comments on commit 98d637d

Please sign in to comment.