Remove download actions from app.py

This commit is contained in:
Teemu Ikonen 2022-08-12 16:18:51 +03:00
parent d7f2943a70
commit 4f360e62f6
1 changed files with 0 additions and 17 deletions

View File

@ -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)