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

Function liveMainWindow

apps/desktop/src/main/index.ts:104–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102const PRELOAD_PATH = fileURLToPath(new URL("../preload/index.js", import.meta.url));
103
104const liveMainWindow = (): BrowserWindow | null => {
105 const window = mainWindow;
106 if (!window) return null;
107 if (window.isDestroyed()) {
108 mainWindow = null;
109 return null;
110 }
111 return window;
112};
113
114const destroyWindow = (window: BrowserWindow) => {
115 if (mainWindow === window) mainWindow = null;

Callers 8

focusMainWindowFunction · 0.85
armSupervisedMonitorFunction · 0.85
showStartupWindowFunction · 0.85
showCrashScreenFunction · 0.85
createWindowFunction · 0.85
restartSidecarAndReloadFunction · 0.85
registerIpcHandlersFunction · 0.85
bootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected