Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Aug 12, 2024
1 parent 990d9da commit fdb63a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ui/lib/widgets/detail_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,13 @@ class _DetailCardState extends ConsumerState<DetailCard> {
Widget downloadButton() {
return LoadingIconButton(
tooltip: widget.details.mediaType == "tv" ? "查找并下载所有监控剧集" : "查找并下载此电影",
onPressed: () async{
onPressed: () async {
await ref
.read(mediaDetailsProvider(widget.details.id.toString()).notifier)
.downloadall().then((list) => {
showSnakeBar("开始下载:$list")
});
.downloadall()
.then((list) => {
if (list != null) {showSnakeBar("开始下载:$list")}
});
},
icon: Icons.download_rounded);
}
Expand Down

0 comments on commit fdb63a8

Please sign in to comment.