()
| 92 | } |
| 93 | |
| 94 | async quit() { |
| 95 | // Save states before quitting. |
| 96 | this.#chatWindows.saveWindowStates(); |
| 97 | this.#namedWindows.saveWindowStates(); |
| 98 | await this.saveConfig(); |
| 99 | // Quit. |
| 100 | if (gui.MessageLoop.quit) |
| 101 | gui.MessageLoop.quit(); |
| 102 | process.exit(0); |
| 103 | } |
| 104 | |
| 105 | addWindow(win: BaseWindow) { |
| 106 | this.windows.push(win); |
no test coverage detected