disable alwaysOnTop on dispose

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-14 16:36:02 +08:00
parent f7c61d63a0
commit 62506d3eb5

View File

@@ -1712,6 +1712,7 @@ class PlPlayerController {
}
return;
}
_playerCount = 0;
_stopListenerForVideoFit();
_stopListenerForEnterFullScreen();
@@ -1736,6 +1737,10 @@ class PlPlayerController {
// playerStatus.close();
// dataStatus.status.close();
if (Utils.isDesktop && isAlwaysOnTop.value) {
windowManager.setAlwaysOnTop(false);
}
await removeListeners();
if (playerStatus.playing) {
WakelockPlus.disable();