(win = mainWindow)
| 315 | } |
| 316 | |
| 317 | function flushPendingOpenNoteRequests(win = mainWindow): void { |
| 318 | if (!win || win.isDestroyed() || !mainWindowReadyForAppEvents) return |
| 319 | |
| 320 | const requests = pendingOpenNoteRequests.splice(0) |
| 321 | for (const relPath of requests) dispatchOpenNoteRequest(win, relPath) |
| 322 | } |
| 323 | |
| 324 | function queueOpenNoteRequest(relPath: string): void { |
| 325 | pendingOpenNoteRequests.push(relPath) |
no test coverage detected