MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / flushWindowNoteOpens

Function flushWindowNoteOpens

apps/desktop/src/main/index.ts:405–410  ·  view source on GitHub ↗
(win: BrowserWindow)

Source from the content-addressed store, hash-verified

403}
404
405function flushWindowNoteOpens(win: BrowserWindow): void {
406 const list = pendingWindowNoteOpens.get(win.id)
407 if (!list || list.length === 0) return
408 pendingWindowNoteOpens.delete(win.id)
409 for (const relPath of list) dispatchOpenNoteRequest(win, relPath)
410}
411
412// Full workspace windows created via createWindow. Utility windows —
413// quick capture, floating notes, PDF export, external-file editors —

Callers 1

registerIpcFunction · 0.85

Calls 2

dispatchOpenNoteRequestFunction · 0.85
deleteMethod · 0.80

Tested by

no test coverage detected