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

Method saveCurrentState

src/manager/stateManager.ts:125–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 }
124
125 saveCurrentState() {
126 // Avoid unnecessary work
127 if (!Me.instance.loaded || Me.instance.disableInProgress) return;
128
129 if (getSettings('tweaks').get_boolean('enable-persistence')) {
130 this.setState('workspaces-state', Me.msWorkspaceManager!.state);
131 }
132 }
133
134 // eslint-disable-next-line @typescript-eslint/no-empty-function
135 destroy() {}

Callers 1

stateChangedMethod · 0.95

Calls 3

setStateMethod · 0.95
getSettingsFunction · 0.90
get_booleanMethod · 0.65

Tested by

no test coverage detected