mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
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"
|
"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):
|
def start(self):
|
||||||
for widget in self.change_sensitivity:
|
for widget in self.change_sensitivity:
|
||||||
self.window.main_glade.get_widget(widget).set_sensitive(True)
|
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):
|
def on_toolbutton_remove_clicked(self, data):
|
||||||
log.debug("on_toolbutton_remove_clicked")
|
log.debug("on_toolbutton_remove_clicked")
|
||||||
# Use the menubar's callbacks
|
# 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):
|
def on_toolbutton_pause_clicked(self, data):
|
||||||
log.debug("on_toolbutton_pause_clicked")
|
log.debug("on_toolbutton_pause_clicked")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user