* 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)
| 329 | * the renderer ("Show details" toggle) and from showStartupFailure(). |
| 330 | */ |
| 331 | function 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 | |
| 343 | function createLoadingWindow() { |
| 344 | bootLogReady = false; |
no outgoing calls
no test coverage detected