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

Method saveWindowState

src/model/window-store.ts:77–86  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

75 }
76
77 saveWindowState(id: string) {
78 const win = this.#windows[id];
79 if (!win) // not opened
80 return;
81 const state = win.saveState();
82 if (state)
83 this.#windowStates[id] = state;
84 else // some windows explicitly do not keep states
85 this.removeWindowState(id);
86 }
87
88 removeWindowState(id: string) {
89 delete this.#windowStates[id];

Callers 3

getOrCreateWindowMethod · 0.95
saveWindowStatesMethod · 0.95
#onRemoveAssistantMethod · 0.80

Calls 2

removeWindowStateMethod · 0.95
saveStateMethod · 0.45

Tested by

no test coverage detected