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

Function destroyWindow

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

Source from the content-addressed store, hash-verified

104};
105
106const destroyWindow = (window: BrowserWindow) => {
107 if (mainWindow === window) mainWindow = null;
108 if (!window.isDestroyed()) window.destroy();
109};
110
111const focusMainWindow = () => {
112 const window = liveMainWindow();

Callers 1

createWindowFunction · 0.85

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected