mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
fix oops in notification
This commit is contained in:
parent
653dcb046e
commit
3fb919b99d
1 changed files with 2 additions and 2 deletions
|
@ -103,9 +103,9 @@ class TorrentNotification:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
file_info = self.interface.manager.get_torrent_file_info(event['unique_ID'])
|
state = self.interface.manager.get_torrent_state(event['unique_ID'])
|
||||||
if pynotify.init("Deluge"):
|
if pynotify.init("Deluge"):
|
||||||
n = pynotify.Notification(_("Torrent complete"))
|
n = pynotify.Notification(_("Torrent complete"), state['name'])
|
||||||
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