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

Function showStartupWindow

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

Source from the content-addressed store, hash-verified

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