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

Function dispatchOpenNoteRequest

apps/desktop/src/main/index.ts:309–315  ·  view source on GitHub ↗
(win: BrowserWindow, relPath: string)

Source from the content-addressed store, hash-verified

307}
308
309function 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
317function flushPendingOpenNoteRequests(win = mainWindow): void {
318 if (!win || win.isDestroyed() || !mainWindowReadyForAppEvents) return

Callers 3

queueNoteOpenForWindowFunction · 0.85
flushWindowNoteOpensFunction · 0.85

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected