Skip to content

Commit

Permalink
Fix download link on accessible menu to include queued state.
Browse files Browse the repository at this point in the history
  • Loading branch information
amugofjava committed Jul 13, 2024
1 parent f08514e commit 16af012
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ui/widgets/episode_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ class _CupertinoAccessibleEpisodeTileState extends State<_CupertinoAccessibleEpi
? Text(L.of(context)!.play_download_button_label)
: Text(L.of(context)!.play_button_label),
),
if (widget.episode.downloadState == DownloadState.downloading)
if (widget.episode.downloadState == DownloadState.queued ||
widget.episode.downloadState == DownloadState.downloading)
CupertinoActionSheetAction(
isDefaultAction: false,
onPressed: () {
Expand Down Expand Up @@ -695,7 +696,8 @@ class _AccessibleEpisodeTileState extends State<_AccessibleEpisodeTile> {
padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 24.0),
child: Text(L.of(context)!.play_button_label),
),
if (widget.episode.downloadState == DownloadState.downloading)
if (widget.episode.downloadState == DownloadState.queued ||
widget.episode.downloadState == DownloadState.downloading)
SimpleDialogOption(
onPressed: () {
episodeBloc.deleteDownload(widget.episode);
Expand Down

0 comments on commit 16af012

Please sign in to comment.