(data: WindowStoreData)
| 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 = {}; |
nothing calls this directly
no test coverage detected