Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-07 14:53:53 +08:00
parent 904756b6ea
commit 4553b86cb4
5 changed files with 15 additions and 19 deletions

View File

@@ -142,6 +142,7 @@ class _MainAppState extends State<MainApp>
Future<void> _onClose() async {
await GStorage.compact();
await GStorage.close();
await trayManager.destroy();
if (Platform.isWindows) {
const MethodChannel('window_control').invokeMethod('closeWindow');
} else {

View File

@@ -458,12 +458,9 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
await videoDetailController.playerInit();
}
Future.delayed(
const Duration(milliseconds: 600),
AutoOrientation.fullAutoMode,
);
plPlayerController?.addStatusLister(playerListener);
plPlayerController?.addPositionListener(positionListener);
plPlayerController
?..addStatusLister(playerListener)
..addPositionListener(positionListener);
}
@override