fix download rate setting

This commit is contained in:
Marcos Pinto 2007-06-21 16:10:48 +00:00
parent 85d3c16c6d
commit 41c4669149

View File

@ -189,9 +189,9 @@ class DelugeGTK:
for value in sorted(self.config.get("tray_downloadspeedlist")):
subitem = gtk.RadioMenuItem(group, str(value) + " " + _("KiB/s"))
group = subitem
self.submenu_bwdownset.append(subitem)
if value == self.config.get("max_download_rate"):
subitem.set_active(True)
self.submenu_bwdownset.append(subitem)
subitem.connect("toggled", self.tray_setbwdown)
subitem = gtk.RadioMenuItem(group, _("Unlimited"))