Refactor play_or_download() progress tab action code.
commit182abc575b68c14c46a2ea57b7e91c34e35d62a6
authorauouymous <au@qzx.com>
Thu, 24 Mar 2022 00:53:38 +0000 (23 18:53 -0600)
committerauouymous <au@qzx.com>
Thu, 24 Mar 2022 00:53:38 +0000 (23 18:53 -0600)
tree9fac6a6714793cc3ac695615efe070f7a7d54263
parentb4d23aae8e85fe53e3f1cad6e53a73969c7f43da
Refactor play_or_download() progress tab action code.

Fixes an issue with the toolbar cancel button turning off and on when
entering the progress tab, even though it can't cancel anything until a
selection is made.

Properly cancels failed tasks manually removed from progress tab. Not
cancelling would leave the error icon and prevent downloading or
cancelling.

The download, pause and cancel actions in toolbar and Episodes
menu can now be used to control downloads in the progress tab. The
delete menu item in Episodes menu removes the download from list. This
also allows keyboard accelerators to be used, such as the Delete key
for removing tasks. Accelerators for cancel, and maybe download/pause,
should added in a future PR.

The progress tab context menu now has the same ordering as the other
menus.
src/gpodder/download.py
src/gpodder/gtkui/main.py
src/gpodder/model.py
src/gpodder/sync.py