mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: video tabbar length
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1156,7 +1156,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
bool showReply = true,
|
bool showReply = true,
|
||||||
}) {
|
}) {
|
||||||
int length = (showIntro ? 1 : 0) + (showReply ? 1 : 0);
|
int length = (showIntro ? 1 : 0) + (showReply ? 1 : 0);
|
||||||
if (length != 0 && videoDetailController.tabCtr.length != length) {
|
if (videoDetailController.tabCtr.length != length) {
|
||||||
videoDetailController.tabCtr = TabController(length: length, vsync: this);
|
videoDetailController.tabCtr = TabController(length: length, vsync: this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1351,6 +1351,10 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void updatePlayCount() {
|
static void updatePlayCount() {
|
||||||
_instance?._playerCount.value -= 1;
|
if (_instance?._playerCount.value == 1) {
|
||||||
|
_instance?.dispose();
|
||||||
|
} else {
|
||||||
|
_instance?._playerCount.value -= 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user