(win: BrowserWindow)
| 382 | } |
| 383 | |
| 384 | function focusWindow(win: BrowserWindow): void { |
| 385 | if (win.isDestroyed()) return |
| 386 | if (win.isMinimized()) win.restore() |
| 387 | win.show() |
| 388 | win.focus() |
| 389 | } |
| 390 | |
| 391 | // Dispatch a note-open to a specific window, deferring until that |
| 392 | // window's renderer reports ready so the request isn't dropped on a |
no outgoing calls
no test coverage detected