mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
opt desktop pip
Closes #1478 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user