mod: disable preload reply

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-12 09:40:29 +08:00
parent 1781fdb7ca
commit 4d3f739a0c
3 changed files with 9 additions and 4 deletions

View File

@@ -162,6 +162,13 @@ class VideoIntroController extends GetxController
videoDetailController.isQuerying.not)) {
videoDetailController.videoItem['pic'] = data.pic;
}
if (videoDetailController.showReply) {
try {
final videoReplyController =
Get.find<VideoReplyController>(tag: heroTag);
videoReplyController.count.value = data.stat?.reply ?? 0;
} catch (_) {}
}
} catch (_) {}
if (videoDetail.value.pages != null &&
videoDetail.value.pages!.isNotEmpty &&

View File

@@ -57,7 +57,8 @@ class _VideoReplyPanelState extends State<VideoReplyPanel>
@override
void initState() {
super.initState();
_videoReplyController = Get.find<VideoReplyController>(tag: heroTag);
_videoReplyController = Get.find<VideoReplyController>(tag: heroTag)
..queryData();
}
@override

View File

@@ -208,9 +208,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
// 获取视频资源,初始化播放器
Future<void> videoSourceInit() async {
videoDetailController.queryVideoUrl();
if (videoDetailController.showReply) {
_videoReplyController.queryData();
}
if (videoDetailController.autoPlay.value) {
plPlayerController = videoDetailController.plPlayerController;
plPlayerController!.addStatusLister(playerListener);