Give the Queue plugin some love.
This commit is contained in:
parent
6485986294
commit
5d1dbc98e5
@ -225,7 +225,7 @@ class Torrent:
|
|||||||
self.torrent_info = None
|
self.torrent_info = None
|
||||||
|
|
||||||
# Create the desired status dictionary and return it
|
# Create the desired status dictionary and return it
|
||||||
status_dict = {}.fromkeys(keys)
|
status_dict = {}
|
||||||
|
|
||||||
if len(keys) == 0:
|
if len(keys) == 0:
|
||||||
status_dict = full_status
|
status_dict = full_status
|
||||||
|
|||||||
@ -116,4 +116,4 @@ class GtkUI(ui.UI):
|
|||||||
self.plugin.remove_preferences_page("Queue")
|
self.plugin.remove_preferences_page("Queue")
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.plugin.update_torrent_view(["#"])
|
self.plugin.update_torrent_view()
|
||||||
|
|||||||
@ -239,7 +239,7 @@ class TorrentView(listview.ListView, component.Component):
|
|||||||
|
|
||||||
# Remove duplicates from status_key list
|
# Remove duplicates from status_key list
|
||||||
status_keys = list(set(status_keys))
|
status_keys = list(set(status_keys))
|
||||||
|
|
||||||
# Create list of torrent_ids in need of status updates
|
# Create list of torrent_ids in need of status updates
|
||||||
torrent_ids = []
|
torrent_ids = []
|
||||||
row = self.liststore.get_iter_first()
|
row = self.liststore.get_iter_first()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user