fix: restore independent UI observer and subscription teardown

This commit is contained in:
Sameh Khamis committed 2026-09-12 23:53:10 -07:00
1 parent b119aef0ad
commit a5af1cbfa3
5 files changed
+143 -1

No files matched your search

+10
View File
@@ -8594,6 +8594,16 @@ export class StyleManager {
this._dataManagerUnsubscribe?.();
this._dataManagerUnsubscribe = null;
this._cctvUnsubscribe?.();
this._cctvUnsubscribe = null;
this._commandDockTrayObserver?.disconnect?.();
this._commandDockTrayObserver = null;
this._draggableResizeObserver?.disconnect();
this._draggableResizeObserver = null;
if (this._windowResizeHandler) {
window.removeEventListener('resize', this._windowResizeHandler);
this._windowResizeHandler = null;
}
if (this._loadingVisibilityHandler) {
document.removeEventListener('visibilitychange', this._loadingVisibilityHandler);
this._loadingVisibilityHandler = null;