mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +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;
|
||||
}
|
||||
|
||||
_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();
|
||||
|
||||
Reference in New Issue
Block a user