(id: string)
| 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]; |
no test coverage detected