MCPcopy
hub / github.com/CopyTranslator/CopyTranslator / closeByName

Method closeByName

src/main/views/manager.ts:140–148  ·  view source on GitHub ↗
(routeName: RouteActionType)

Source from the content-addressed store, hash-verified

138 }
139
140 closeByName(routeName: RouteActionType) {
141 if (this.windows.has(routeName)) {
142 if (routeName == "contrast") {
143 this.saveBounds(); //修复直接退出时没有保存布局设置的问题
144 }
145 (<BrowserWindow>this.windows.get(routeName)).close();
146 this.windows.delete(routeName);
147 }
148 }
149
150 close() {
151 this.saveBounds();

Callers 1

handleMethod · 0.80

Calls 4

saveBoundsMethod · 0.95
closeMethod · 0.80
hasMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected