opt desktop pip

Closes #1478

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-28 13:48:16 +08:00
parent 86beb879a2
commit 3b4e251034
6 changed files with 29 additions and 25 deletions

View File

@@ -281,6 +281,8 @@ class PlPlayerController {
}
Future<void> enterDesktopPip() async {
if (isFullScreen.value) return;
isDesktopPip = true;
_lastWindowBounds = await windowManager.getBounds();
@@ -1572,6 +1574,7 @@ class PlPlayerController {
bool isManualFS = true,
FullScreenMode? mode,
}) async {
if (isDesktopPip) return;
if (isFullScreen.value == status) return;
if (fsProcessing) {
@@ -1916,4 +1919,4 @@ class PlPlayerController {
}
});
}
}
}