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

Method quit

src/controller/window-manager.ts:94–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 5

#onAllWindowsClosedMethod · 0.95
run.tsFile · 0.80
showErrorFunction · 0.80
onClickMethod · 0.80

Calls 1

saveWindowStatesMethod · 0.80

Tested by

no test coverage detected