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

Function liveMainWindow

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

Source from the content-addressed store, hash-verified

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