MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / flushPendingFloatingNoteRequests

Function flushPendingFloatingNoteRequests

apps/desktop/src/main/index.ts:342–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340}
341
342async function flushPendingFloatingNoteRequests(): Promise<void> {
343 if (flushingFloatingNoteRequests || pendingFloatingNoteRequests.length === 0) return
344 flushingFloatingNoteRequests = true
345 try {
346 const vault = await loadCurrentVaultFromConfig()
347 if (!vault) {
348 await ensureMainWindow()
349 return
350 }
351
352 const requests = pendingFloatingNoteRequests.splice(0)
353 for (const relPath of requests) openFloatingNoteWindow(relPath)
354 } finally {
355 flushingFloatingNoteRequests = false
356 }
357}
358
359type ExternalOpenUrlResult = 'none' | 'note' | 'quick-capture'
360

Callers 3

queueFloatingNoteRequestFunction · 0.85
registerIpcFunction · 0.85
index.tsFile · 0.85

Calls 3

ensureMainWindowFunction · 0.85
openFloatingNoteWindowFunction · 0.85

Tested by

no test coverage detected