mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
disable alwaysOnTop on dispose
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1712,6 +1712,7 @@ class PlPlayerController {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_playerCount = 0;
|
_playerCount = 0;
|
||||||
_stopListenerForVideoFit();
|
_stopListenerForVideoFit();
|
||||||
_stopListenerForEnterFullScreen();
|
_stopListenerForEnterFullScreen();
|
||||||
@@ -1736,6 +1737,10 @@ class PlPlayerController {
|
|||||||
// playerStatus.close();
|
// playerStatus.close();
|
||||||
// dataStatus.status.close();
|
// dataStatus.status.close();
|
||||||
|
|
||||||
|
if (Utils.isDesktop && isAlwaysOnTop.value) {
|
||||||
|
windowManager.setAlwaysOnTop(false);
|
||||||
|
}
|
||||||
|
|
||||||
await removeListeners();
|
await removeListeners();
|
||||||
if (playerStatus.playing) {
|
if (playerStatus.playing) {
|
||||||
WakelockPlus.disable();
|
WakelockPlus.disable();
|
||||||
|
|||||||
Reference in New Issue
Block a user