MCPcopy Create free account
hub / github.com/chieapp/chie / deserialize

Method deserialize

src/model/window-store.ts:16–26  ·  view source on GitHub ↗
(data: WindowStoreData)

Source from the content-addressed store, hash-verified

14 }
15
16 deserialize(data: WindowStoreData) {
17 if (typeof data != 'object') // accepts empty data
18 data = {};
19 this.#windowStates = {};
20 for (const id in data) {
21 const wd = data[id];
22 this.#windowStates[id] = wd.state;
23 if (wd.opened)
24 this.showWindow(id);
25 }
26 }
27
28 serialize() {
29 const data: WindowStoreData = {};

Callers

nothing calls this directly

Calls 1

showWindowMethod · 0.95

Tested by

no test coverage detected