mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
fix notification bug on startup for already finished torrents
This commit is contained in:
parent
81b895bd1d
commit
6eb413dd1e
1 changed files with 8 additions and 8 deletions
|
@ -42,12 +42,12 @@ class Notification:
|
||||||
self.get_torrent_status(torrent_id)
|
self.get_torrent_status(torrent_id)
|
||||||
|
|
||||||
def get_torrent_status(self, torrent_id):
|
def get_torrent_status(self, torrent_id):
|
||||||
client.get_torrent_status(
|
client.get_torrent_status(self._on_get_torrent_status, torrent_id, ["name", "num_files"])
|
||||||
self._on_get_torrent_status, torrent_id, ["name", "num_files"])
|
|
||||||
|
|
||||||
def _on_get_torrent_status(self, status):
|
def _on_get_torrent_status(self, status):
|
||||||
if status is None:
|
if status is None:
|
||||||
return
|
return
|
||||||
|
if status["total_payload_download"]:
|
||||||
if self.config["ntf_popup"]:
|
if self.config["ntf_popup"]:
|
||||||
self.popup(status)
|
self.popup(status)
|
||||||
if self.config["ntf_email"]:
|
if self.config["ntf_email"]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue