Collapse the CCTV panel when the layer is switched off

The panel opened itself when a camera became active, but nothing closed it
when the layer went off: it stayed expanded, empty, and its meta line still
described the last camera. The collapse runs only on the on-to-off change, so a
panel opened by hand while the layer is off stays open, and a context-mode
layer clear keeps the panel as Radio does.
This commit is contained in:
Said Turksever committed 2026-11-13 17:26:34 +00:00
1 parent 7df581765d
commit 0325805eb0
4 files changed
+97 -1

No files matched your search

+2
View File
@@ -1197,6 +1197,8 @@ export class StyleManager extends ShellFacade {
toggleEnabled: (...args) => this._toggleCctvEnabled(...args),
runExplicitFocus: (...args) => this._runExplicitCctvFocus(...args),
setPanelCollapsed: (...args) => this.setPanelCollapsed(...args),
preservePanelStateDuringClear: () =>
this._preservePanelStateDuringLayerClear,
showToast: (message) => this._showToast(message),
syncViewport: () => this._syncCctvPanelViewport(),
},