Fix remove torrent toolbutton.
This commit is contained in:
parent
7303e52ae6
commit
569fba5b5f
File diff suppressed because it is too large
Load Diff
|
@ -67,6 +67,11 @@ class ToolBar(component.Component):
|
|||
"toolbutton_resume"
|
||||
]
|
||||
|
||||
# Set the Remove Torrent toolbuttons drop-down menu
|
||||
tb_remove = self.window.main_glade.get_widget("toolbutton_remove")
|
||||
tb_remove.set_menu(
|
||||
component.get("MenuBar").torrentmenu_glade.get_widget("remove_torrent_menu"))
|
||||
|
||||
def start(self):
|
||||
for widget in self.change_sensitivity:
|
||||
self.window.main_glade.get_widget(widget).set_sensitive(True)
|
||||
|
@ -136,7 +141,7 @@ class ToolBar(component.Component):
|
|||
def on_toolbutton_remove_clicked(self, data):
|
||||
log.debug("on_toolbutton_remove_clicked")
|
||||
# Use the menubar's callbacks
|
||||
component.get("MenuBar").on_menuitem_remove_activate(data)
|
||||
component.get("MenuBar").on_menuitem_remove_session_activate(data)
|
||||
|
||||
def on_toolbutton_pause_clicked(self, data):
|
||||
log.debug("on_toolbutton_pause_clicked")
|
||||
|
|
Loading…
Reference in New Issue