mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 22:30:16 +08:00
opt desktop pip
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -118,12 +118,18 @@ class _MainAppState extends State<MainApp>
|
||||
|
||||
@override
|
||||
Future<void> onWindowMoved() async {
|
||||
if (PlPlayerController.instance?.isDesktopPip ?? false) {
|
||||
return;
|
||||
}
|
||||
final Offset offset = await windowManager.getPosition();
|
||||
_setting.put(SettingBoxKey.windowPosition, [offset.dx, offset.dy]);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onWindowResized() async {
|
||||
if (PlPlayerController.instance?.isDesktopPip ?? false) {
|
||||
return;
|
||||
}
|
||||
final Rect bounds = await windowManager.getBounds();
|
||||
_setting.putAll({
|
||||
SettingBoxKey.windowSize: [bounds.width, bounds.height],
|
||||
|
||||
Reference in New Issue
Block a user