fix: video item menu

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-20 15:47:55 +08:00
parent dfd4bf8077
commit 7544bc2a7f

View File

@@ -28,7 +28,7 @@ class VideoCustomActions {
VideoCustomActions(this.videoItem, this.context, [this.onRemove]) {
actions = [
if ((videoItem.bvid as String?)?.isNotEmpty == true)
if ((videoItem.bvid as String?)?.isNotEmpty == true) ...[
VideoCustomAction(
videoItem.bvid,
'copy',
@@ -47,10 +47,11 @@ class VideoCustomActions {
'pause',
Icon(MdiIcons.clockTimeEightOutline, size: 16),
() async {
var res = await UserHttp.toViewLater(bvid: videoItem.bvid as String);
var res = await UserHttp.toViewLater(bvid: videoItem.bvid);
SmartDialog.showToast(res['msg']);
},
),
],
if (videoItem is! Item)
VideoCustomAction(
'访问:${videoItem.owner.name}',