MCPcopy Index your code
hub / github.com/material-shell/material-shell / updatePanelVisibilities

Method updatePanelVisibilities

src/layout/main.ts:290–311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 }
289
290 updatePanelVisibilities(): void {
291 [
292 this.primaryMonitorContainer.verticalPanelSpacer,
293 this.primaryMonitorContainer.horizontalPanelSpacer,
294 ...this.monitorsContainer.map(
295 (container) => container.horizontalPanelSpacer
296 ),
297 ].forEach((actor) => {
298 actor.visible = this.panelsVisible;
299 if (this.panelsVisible) {
300 if (Main.layoutManager._findActor(actor) === -1) {
301 Main.layoutManager._trackActor(actor, {
302 affectsStruts: true,
303 });
304 }
305 } else {
306 Main.layoutManager._untrackActor(actor);
307 }
308 });
309 this.primaryMonitorContainer.panel.visible = this.panelsVisible;
310 Me.msWorkspaceManager.refreshMsWorkspaceUI();
311 }
312
313 updateFullscreenMonitors(): void {
314 this.primaryMonitorContainer.refreshFullscreen();

Callers 3

constructorMethod · 0.95
registerToSignalsMethod · 0.95

Calls 2

refreshMsWorkspaceUIMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected