From 560b1e40ccccaa9f038f783feccc407b031f6f23 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Tue, 8 Apr 2025 19:08:40 +0800 Subject: [PATCH] fix: #639 Signed-off-by: bggRGjQaUbCoE --- lib/pages/history/widgets/item.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/history/widgets/item.dart b/lib/pages/history/widgets/item.dart index 7e01a74b..76fa2548 100644 --- a/lib/pages/history/widgets/item.dart +++ b/lib/pages/history/widgets/item.dart @@ -380,8 +380,10 @@ class HistoryItem extends StatelessWidget { ), ), PopupMenuItem( - onTap: () => ctr!.delHistory( - videoItem.kid, videoItem.history.business), + onTap: () => onDelete != null + ? onDelete!(videoItem.kid, videoItem.history.business) + : ctr.delHistory( + videoItem.kid, videoItem.history.business), height: 35, child: const Row( children: [