Merge pull request #680 from micahmo/fix/always-on-top

Fix issue with always on top getting stuck
This commit is contained in:
edde746
2026-03-11 20:50:49 +01:00
committed by GitHub
@@ -671,9 +671,12 @@ class _PlexVideoControlsState extends State<PlexVideoControls> with WindowListen
}
// Remove lifecycle observer
WidgetsBinding.instance.removeObserver(this);
// Remove window listener
// Remove window listener and reset always-on-top if it was enabled
if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
windowManager.removeListener(this);
if (_isAlwaysOnTop) {
windowManager.setAlwaysOnTop(false);
}
}
if (Platform.isMacOS) {
_pipService.isPipActive.removeListener(_onMacPipChanged);