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

Function flushPendingOpenNoteRequests

apps/desktop/src/main/index.ts:317–322  ·  view source on GitHub ↗
(win = mainWindow)

Source from the content-addressed store, hash-verified

315}
316
317function 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
324function queueOpenNoteRequest(relPath: string): void {
325 pendingOpenNoteRequests.push(relPath)

Callers 2

queueOpenNoteRequestFunction · 0.85
registerIpcFunction · 0.85

Calls 1

dispatchOpenNoteRequestFunction · 0.85

Tested by

no test coverage detected