only show queue arrows if there are two or more torrents loaded

This commit is contained in:
Marcos Pinto 2007-11-12 19:59:46 +00:00
parent 70b7c120bc
commit fd817f5e76
1 changed files with 6 additions and 4 deletions

View File

@ -1092,10 +1092,12 @@ window, please enter your password"))
not None)
self.wtree.get_widget("toolbutton_pause").set_sensitive(itr is \
not None)
self.wtree.get_widget("toolbutton_up").set_sensitive(itr is \
not None)
self.wtree.get_widget("toolbutton_down").set_sensitive(itr is \
not None)
if len(self.manager.get_queue()) > 1:
self.wtree.get_widget("toolbutton_up").set_sensitive(True)
self.wtree.get_widget("toolbutton_down").set_sensitive(True)
else:
self.wtree.get_widget("toolbutton_up").set_sensitive(False)
self.wtree.get_widget("toolbutton_down").set_sensitive(False)
if itr is None:
return True