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

Method saveRegistry

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

Source from the content-addressed store, hash-verified

87 }
88
89 saveRegistry() {
90 const json = JSON.stringify(this.state);
91 global.set_persistent_state(
92 'material-shell-state',
93 GLib.Variant.new_string(json)
94 );
95 }
96 getState(key: string) {
97 return this.state[key];
98 }

Callers 1

setStateMethod · 0.95

Calls 1

set_persistent_stateMethod · 0.80

Tested by

no test coverage detected