(win: BrowserWindow, relPath: string)
| 307 | } |
| 308 | |
| 309 | function dispatchOpenNoteRequest(win: BrowserWindow, relPath: string): void { |
| 310 | if (win.isDestroyed()) return |
| 311 | if (win.isMinimized()) win.restore() |
| 312 | win.show() |
| 313 | win.focus() |
| 314 | win.webContents.send(IPC.APP_OPEN_NOTE_REQUESTED, relPath) |
| 315 | } |
| 316 | |
| 317 | function flushPendingOpenNoteRequests(win = mainWindow): void { |
| 318 | if (!win || win.isDestroyed() || !mainWindowReadyForAppEvents) return |
no test coverage detected