mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 19:51:11 +08:00
mod: restore video duration
Closes #293 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -184,8 +184,12 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
),
|
||||
ListTile(
|
||||
dense: true,
|
||||
onTap: () =>
|
||||
{Get.back(), widget.videoDetailCtr.queryVideoUrl()},
|
||||
onTap: () => {
|
||||
Get.back(),
|
||||
widget.videoDetailCtr.queryVideoUrl(
|
||||
widget.videoDetailCtr.playedTime,
|
||||
)
|
||||
},
|
||||
leading: const Icon(Icons.refresh_outlined, size: 20),
|
||||
title: const Text('重载视频', style: titleStyle),
|
||||
),
|
||||
@@ -288,7 +292,9 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
SmartDialog.showToast(
|
||||
'已设置为 ${CDNServiceCode.fromCode(result)!.description},正在重载视频');
|
||||
setState(() {});
|
||||
widget.videoDetailCtr.queryVideoUrl();
|
||||
widget.videoDetailCtr.queryVideoUrl(
|
||||
widget.videoDetailCtr.playedTime,
|
||||
);
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user