Tweak EditTrackersDialog async call.
This commit is contained in:
parent
6438cb0121
commit
7ed0821143
@ -87,8 +87,9 @@ class EditTrackersDialog:
|
|||||||
|
|
||||||
# Get the trackers for this torrent
|
# Get the trackers for this torrent
|
||||||
|
|
||||||
client.get_torrent_status(self._on_get_torrent_status, self.torrent_id,\
|
client.get_torrent_status(
|
||||||
["trackers"])
|
self._on_get_torrent_status, self.torrent_id, ["trackers"])
|
||||||
|
client.force_call()
|
||||||
|
|
||||||
def _on_get_torrent_status(self, status):
|
def _on_get_torrent_status(self, status):
|
||||||
"""Display trackers dialog"""
|
"""Display trackers dialog"""
|
||||||
@ -97,8 +98,6 @@ class EditTrackersDialog:
|
|||||||
|
|
||||||
self.dialog.show()
|
self.dialog.show()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def add_tracker(self, tier, url):
|
def add_tracker(self, tier, url):
|
||||||
"""Adds a tracker to the list"""
|
"""Adds a tracker to the list"""
|
||||||
self.liststore.append([tier, url])
|
self.liststore.append([tier, url])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user