mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 09:28:41 +00:00
remove filelist from notification list
This commit is contained in:
parent
3ba156632f
commit
77d4fefba9
1 changed files with 1 additions and 7 deletions
|
@ -104,14 +104,8 @@ class TorrentNotification:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
file_info = self.interface.manager.get_torrent_file_info(event['unique_ID'])
|
file_info = self.interface.manager.get_torrent_file_info(event['unique_ID'])
|
||||||
filelist = ""
|
|
||||||
for file in file_info[:10]:
|
|
||||||
filelist += file['path'] + "\n"
|
|
||||||
if len(file_info) > 10:
|
|
||||||
filelist += '...'
|
|
||||||
if pynotify.init("Deluge"):
|
if pynotify.init("Deluge"):
|
||||||
n = pynotify.Notification(_("Torrent complete"),
|
n = pynotify.Notification(_("Torrent complete"))
|
||||||
_("Files") + ":\n" + filelist)
|
|
||||||
n.set_icon_from_pixbuf(deluge.common.get_logo(48))
|
n.set_icon_from_pixbuf(deluge.common.get_logo(48))
|
||||||
n.show()
|
n.show()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue