MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / setLoadingWindowExpanded

Function setLoadingWindowExpanded

electron/main.mjs:331–341  ·  view source on GitHub ↗

* Grow or shrink the loading window to reveal/hide the startup-log console. * Keeps the top edge fixed so the splash content doesn't jump. Invoked from * the renderer ("Show details" toggle) and from showStartupFailure().

(expanded)

Source from the content-addressed store, hash-verified

329 * the renderer ("Show details" toggle) and from showStartupFailure().
330 */
331function setLoadingWindowExpanded(expanded) {
332 if (!loadingWin || loadingWin.isDestroyed()) return;
333 const bounds = loadingWin.getBounds();
334 const height = expanded ? LOADING_WIN_EXPANDED_HEIGHT : LOADING_WIN_HEIGHT;
335 if (bounds.height === height) return;
336 // macOS ignores programmatic resizes of resizable:false windows on some
337 // Electron versions — lift the flag around the change.
338 loadingWin.setResizable(true);
339 loadingWin.setBounds({ ...bounds, height }, true);
340 loadingWin.setResizable(false);
341}
342
343function createLoadingWindow() {
344 bootLogReady = false;

Callers 2

showStartupFailureFunction · 0.85
main.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected