Set episode toolbar and menu actions. - #1249
Conversation
Items in the Episode menu were not disabled when the progess tab was opened. This consolidates the enabling and disabling of buttons in the toolbar and items in the Episodes menu, and fixes that issue. It also changes the label and icon for the toolbar play button to be Open, Play, Preview or Stream.
|
Good! Still a minor bug when
|
|
The cancel button is disabled when opening progress tab, but it then gets turned back on each time a task updates. Switching back and forth turns it off each time progress tab is opened, and the following code is what causes it. on_item_cancel_download_activate() has code to cancel the selected task in progress tab. So play_or_download() and on_wNotebook_switch_page() need to check for a selected task and toggle the cancel button to the correct state using set_episode_actions() so the episode menu and ^C can also cancel tasks. And a future PR could enable the download and pause buttons to resume and pause selected tasks. |
|
So, nothing to fix within current PR then. |
Items in the Episode menu were not disabled when the progess tab was opened. This consolidates the enabling and disabling of buttons in the toolbar and items in the Episodes menu, and fixes that issue.
It also changes the label and icon for the toolbar play button to be Open, Play, Preview or Stream.
I haven't yet figured out how, but if possible, this new function could change the Play menu item label as well, and no longer need the Open menu item.