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

Function queueOpenNoteRequest

apps/desktop/src/main/index.ts:324–335  ·  view source on GitHub ↗
(relPath: string)

Source from the content-addressed store, hash-verified

322}
323
324function 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
337function queueFloatingNoteRequest(relPath: string): void {
338 pendingFloatingNoteRequests.push(relPath)

Callers 1

handleExternalOpenUrlFunction · 0.85

Calls 2

ensureMainWindowFunction · 0.85

Tested by

no test coverage detected