Remove download actions from app.py
This commit is contained in:
parent
d7f2943a70
commit
4f360e62f6
|
@ -111,23 +111,6 @@ class gPodderApplication(Gtk.Application):
|
|||
action.connect('activate', self.on_menu)
|
||||
self.add_action(action)
|
||||
|
||||
def do_nothing(x):
|
||||
return False
|
||||
|
||||
action_defs = [
|
||||
# Progress dialog actions
|
||||
# Callbacks will be set when context menu is shown
|
||||
('setDownloadQueued', do_nothing),
|
||||
('setDownloadCancelled', do_nothing),
|
||||
('setDownloadPaused', do_nothing),
|
||||
('setDownloadRemove', do_nothing),
|
||||
]
|
||||
|
||||
for name, callback in action_defs:
|
||||
action = Gio.SimpleAction.new(name, None)
|
||||
action.connect('activate', callback)
|
||||
self.add_action(action)
|
||||
|
||||
def do_startup(self):
|
||||
Gtk.Application.do_startup(self)
|
||||
|
||||
|
|
Loading…
Reference in New Issue