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

Function showStartupWindow

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

Source from the content-addressed store, hash-verified

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