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

Function setLoadingWindowExpanded

electron/main.mjs:260–270  ·  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

258 * the renderer ("Show details" toggle) and from showStartupFailure().
259 */
260function setLoadingWindowExpanded(expanded) {
261 if (!loadingWin || loadingWin.isDestroyed()) return;
262 const bounds = loadingWin.getBounds();
263 const height = expanded ? LOADING_WIN_EXPANDED_HEIGHT : LOADING_WIN_HEIGHT;
264 if (bounds.height === height) return;
265 // macOS ignores programmatic resizes of resizable:false windows on some
266 // Electron versions — lift the flag around the change.
267 loadingWin.setResizable(true);
268 loadingWin.setBounds({ ...bounds, height }, true);
269 loadingWin.setResizable(false);
270}
271
272function createLoadingWindow() {
273 loadingWin = new BrowserWindow({

Callers 2

showStartupFailureFunction · 0.85
main.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected