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

Function destroyWindow

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

Source from the content-addressed store, hash-verified

96};
97
98const destroyWindow = (window: BrowserWindow) => {
99 if (mainWindow === window) mainWindow = null;
100 if (!window.isDestroyed()) window.destroy();
101};
102
103const focusMainWindow = () => {
104 const window = liveMainWindow();

Callers 1

createWindowFunction · 0.85

Calls 1

destroyMethod · 0.80

Tested by

no test coverage detected