Remove old desired ratio code
This commit is contained in:
parent
d64a5c0d03
commit
9ac9f13044
|
@ -385,10 +385,6 @@ class DelugeGTK:
|
||||||
"queue_down": self.q_torrent_down,
|
"queue_down": self.q_torrent_down,
|
||||||
"queue_bottom": self.q_to_bottom,
|
"queue_bottom": self.q_to_bottom,
|
||||||
"queue_top": self.q_to_top,
|
"queue_top": self.q_to_top,
|
||||||
"set_ratio0": self.set_ratio_0,
|
|
||||||
"set_ratio1": self.set_ratio_1,
|
|
||||||
"set_ratio2": self.set_ratio_2,
|
|
||||||
"set_ratio3": self.set_ratio_3,
|
|
||||||
})
|
})
|
||||||
self.torrent_menu.connect("focus", self.torrent_menu_focus)
|
self.torrent_menu.connect("focus", self.torrent_menu_focus)
|
||||||
# UID, Q#, Status Icon, Name, Size, Progress, Message, Seeders, Peers, DL, UL, ETA, Share
|
# UID, Q#, Status Icon, Name, Size, Progress, Message, Seeders, Peers, DL, UL, ETA, Share
|
||||||
|
@ -547,26 +543,6 @@ class DelugeGTK:
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_ratio_0(self, widget):
|
|
||||||
unique_ids = self.get_selected_torrent_rows()
|
|
||||||
for uid in unique_ids:
|
|
||||||
self.manager.set_ratio(uid, 0)
|
|
||||||
|
|
||||||
def set_ratio_1(self, widget):
|
|
||||||
unique_ids = self.get_selected_torrent_rows()
|
|
||||||
for uid in unique_ids:
|
|
||||||
self.manager.set_ratio(uid, 1)
|
|
||||||
|
|
||||||
def set_ratio_2(self, widget):
|
|
||||||
unique_ids = self.get_selected_torrent_rows()
|
|
||||||
for uid in unique_ids:
|
|
||||||
self.manager.set_ratio(uid, 2)
|
|
||||||
|
|
||||||
def set_ratio_3(self, widget):
|
|
||||||
unique_ids = self.get_selected_torrent_rows()
|
|
||||||
for uid in unique_ids:
|
|
||||||
self.manager.set_ratio(uid, 3)
|
|
||||||
|
|
||||||
def torrent_menu_focus(self, widget, direction):
|
def torrent_menu_focus(self, widget, direction):
|
||||||
menuitem = self.torrent_glade.get_widget("menu_pause")
|
menuitem = self.torrent_glade.get_widget("menu_pause")
|
||||||
# Check if we are selecting multiple torrents
|
# Check if we are selecting multiple torrents
|
||||||
|
|
Loading…
Reference in New Issue