Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-11-22 19:35:42 +08:00
parent cb8333d4c0
commit c4aca389a8
8 changed files with 23 additions and 18 deletions

View File

@@ -399,7 +399,8 @@ class PlPlayerController {
late final pgcSkipType = Pref.pgcSkipType;
late final enablePgcSkip = Pref.pgcSkipType != SkipType.disable;
// sponsor block
late final bool enableSponsorBlock = Pref.enableSponsorBlock || enablePgcSkip;
late final bool enableSponsorBlock = Pref.enableSponsorBlock;
late final bool enableBlock = enableSponsorBlock || enablePgcSkip;
late final double blockLimit = Pref.blockLimit;
late final blockSettings = Pref.blockSettings;
late final List<Color> blockColor = Pref.blockColor;

View File

@@ -1787,7 +1787,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
0,
),
),
if (plPlayerController.enableSponsorBlock &&
if (plPlayerController.enableBlock &&
videoDetailController.segmentProgressList.isNotEmpty)
Positioned(
left: 0,

View File

@@ -132,7 +132,7 @@ class BottomControl extends StatelessWidget {
alignment: Alignment.bottomCenter,
children: [
progressBar(),
if (controller.enableSponsorBlock &&
if (controller.enableBlock &&
videoDetailController.segmentProgressList.isNotEmpty)
Positioned(
left: 0,