mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-18 15:51:57 +00:00
misc. bugfixes
This commit is contained in:
parent
05d6a0053c
commit
e02a073c2f
2 changed files with 674 additions and 666 deletions
File diff suppressed because it is too large
Load diff
|
@ -165,6 +165,7 @@ class DelugeGTK:
|
||||||
self.tray.connect("activate", self.tray_clicked, None)
|
self.tray.connect("activate", self.tray_clicked, None)
|
||||||
|
|
||||||
def tray_popup(self, status_icon, button, activate_time, arg0=None):
|
def tray_popup(self, status_icon, button, activate_time, arg0=None):
|
||||||
|
print "Tray Clicked"
|
||||||
self.tray_menu.popup(None, None, gtk.status_icon_position_menu,
|
self.tray_menu.popup(None, None, gtk.status_icon_position_menu,
|
||||||
button, activate_time, self.tray)
|
button, activate_time, self.tray)
|
||||||
|
|
||||||
|
@ -289,11 +290,11 @@ class DelugeGTK:
|
||||||
all_files = self.manager.get_torrent_file_info(unique_id)
|
all_files = self.manager.get_torrent_file_info(unique_id)
|
||||||
file_filter = self.manager.get_file_filter(unique_id)
|
file_filter = self.manager.get_file_filter(unique_id)
|
||||||
if file_filter is None:
|
if file_filter is None:
|
||||||
file_filter = [True] * len(all_files)
|
file_filter = [False] * len(all_files)
|
||||||
assert(len(all_files) == len(file_filter))
|
assert(len(all_files) == len(file_filter))
|
||||||
i=0
|
i=0
|
||||||
for f in all_files:
|
for f in all_files:
|
||||||
self.file_store.append([file_filter[i], f['path'], dcommon.fsize(f['size']),
|
self.file_store.append([not file_filter[i], f['path'], dcommon.fsize(f['size']),
|
||||||
f['offset'], '%.2f%%'%f['progress']])
|
f['offset'], '%.2f%%'%f['progress']])
|
||||||
i=i+1
|
i=i+1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue