(routeName: RouteActionType)
| 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(); |
no test coverage detected