mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video item menu
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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}',
|
||||
|
||||
Reference in New Issue
Block a user