(relPath: string)
| 322 | } |
| 323 | |
| 324 | function queueOpenNoteRequest(relPath: string): void { |
| 325 | pendingOpenNoteRequests.push(relPath) |
| 326 | |
| 327 | if (mainWindow && !mainWindow.isDestroyed()) { |
| 328 | flushPendingOpenNoteRequests(mainWindow) |
| 329 | return |
| 330 | } |
| 331 | |
| 332 | if (app.isReady()) { |
| 333 | void ensureMainWindow().then(() => flushPendingOpenNoteRequests()) |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | function queueFloatingNoteRequest(relPath: string): void { |
| 338 | pendingFloatingNoteRequests.push(relPath) |
no test coverage detected