From 06b433aa602d37501bedfceb9726fecf15d94920 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Sun, 10 Aug 2025 11:54:04 +0800 Subject: [PATCH] fix change episode Signed-off-by: bggRGjQaUbCoE --- lib/plugin/pl_player/view.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 87af4111c..df81d4889 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -249,9 +249,8 @@ class _PLVideoPlayerState extends State final isSeason = videoDetail.ugcSeason != null; final isPart = videoDetail.pages != null && videoDetail.pages!.length > 1; final isPgc = !widget.videoDetailController!.isUgc; - final anySeason = isSeason || isPart || isPgc; - final isPlayAll = - anySeason || widget.videoDetailController?.isPlayAll == true; + final isPlayAll = widget.videoDetailController?.isPlayAll == true; + final anySeason = isSeason || isPart || isPgc || isPlayAll; final double widgetWidth = isFullScreen && context.isLandscape ? 42 : 35; @@ -639,7 +638,7 @@ class _PLVideoPlayerState extends State List userSpecifyItemLeft = [ BottomControlType.playOrPause, BottomControlType.time, - if (isPlayAll) ...[ + if (anySeason) ...[ BottomControlType.pre, BottomControlType.next, ], @@ -649,7 +648,7 @@ class _PLVideoPlayerState extends State BottomControlType.dmChart, BottomControlType.superResolution, BottomControlType.viewPoints, - if (isPlayAll) BottomControlType.episode, + if (anySeason) BottomControlType.episode, if (isFullScreen) BottomControlType.fit, BottomControlType.subtitle, BottomControlType.speed,