MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / onExit

Method onExit

src/main/controller.ts:199–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 async onExit() {
200 await this.transCon.onExit();
201 await tracker.flush();
202 this.config.save();
203 this.shortcut.unregister();
204 app.exit(); //这里必须是exit,不然就会死锁
205 }
206
207 postSet(identifier: Identifier, value: any): boolean {
208 switch (identifier) {

Callers 2

handleMethod · 0.95
background.tsFile · 0.45

Calls 3

saveMethod · 0.80
unregisterMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected