mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
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:
1 parent
7df581765d
commit
0325805eb0
4 files changed
+97
-1
No files matched your search
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user