Some minor code cleanups. Closes #318.
This commit is contained in:
parent
7427389739
commit
5d9d8a6741
|
@ -102,7 +102,6 @@ class FilesTab(Tab):
|
|||
|
||||
self.listview = glade.get_widget("files_listview")
|
||||
# filename, size, progress string, progress value, priority, file index, icon id
|
||||
self.liststore = gtk.ListStore(str, gobject.TYPE_UINT64, str, int, int, int)
|
||||
self.treestore = gtk.TreeStore(str, gobject.TYPE_UINT64, str, int, int, int, str)
|
||||
|
||||
# Filename column
|
||||
|
|
|
@ -106,15 +106,6 @@ class SideBar(component.Component):
|
|||
value = model.get_value(row, 0)
|
||||
if value == "All":
|
||||
component.get("TorrentView").set_filter(None, None)
|
||||
if value == "Downloading":
|
||||
component.get("TorrentView").set_filter("state",
|
||||
"Downloading")
|
||||
if value == "Seeding":
|
||||
component.get("TorrentView").set_filter("state", "Seeding")
|
||||
if value == "Queued":
|
||||
component.get("TorrentView").set_filter("state", "Queued")
|
||||
if value == "Paused":
|
||||
component.get("TorrentView").set_filter("state", "Paused")
|
||||
if value == "Error":
|
||||
component.get("TorrentView").set_filter("state", "Error")
|
||||
else:
|
||||
component.get("TorrentView").set_filter("state", value)
|
||||
|
||||
|
|
Loading…
Reference in New Issue