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

Function showStartupWindow

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

Source from the content-addressed store, hash-verified

567};
568
569const showStartupWindow = async (): Promise<void> => {
570 const window = liveMainWindow() ?? createMainBrowserWindow({ show: true });
571 if (window.isMinimized()) window.restore();
572 if (!window.isVisible()) window.show();
573 window.focus();
574
575 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: local startup HTML should not block service startup
576 try {
577 await window.loadURL(htmlDataUrl(startupWindowHtml()));
578 } catch (error) {
579 log.warn("Failed to load startup window", error);
580 }
581};
582
583const showCrashScreen = (
584 window: BrowserWindow | null = liveMainWindow(),

Callers 1

bootFunction · 0.85

Calls 5

startupWindowHtmlFunction · 0.90
liveMainWindowFunction · 0.85
createMainBrowserWindowFunction · 0.85
htmlDataUrlFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected