(win: BrowserWindow, relPath: string)
| 392 | // window's renderer reports ready so the request isn't dropped on a |
| 393 | // freshly created window. |
| 394 | function queueNoteOpenForWindow(win: BrowserWindow, relPath: string): void { |
| 395 | if (win.isDestroyed()) return |
| 396 | if (readyWindowIds.has(win.id)) { |
| 397 | dispatchOpenNoteRequest(win, relPath) |
| 398 | return |
| 399 | } |
| 400 | const list = pendingWindowNoteOpens.get(win.id) ?? [] |
| 401 | list.push(relPath) |
| 402 | pendingWindowNoteOpens.set(win.id, list) |
| 403 | } |
| 404 | |
| 405 | function flushWindowNoteOpens(win: BrowserWindow): void { |
| 406 | const list = pendingWindowNoteOpens.get(win.id) |
no test coverage detected