MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / destroyWindow

Function destroyWindow

apps/desktop/src/main/index.ts:114–117  ·  view source on GitHub ↗
(window: BrowserWindow)

Source from the content-addressed store, hash-verified

112};
113
114const destroyWindow = (window: BrowserWindow) => {
115 if (mainWindow === window) mainWindow = null;
116 if (!window.isDestroyed()) window.destroy();
117};
118
119const focusMainWindow = () => {
120 const window = liveMainWindow();

Callers 1

createWindowFunction · 0.85

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected