MCPcopy Create free account
hub / github.com/codeHappyDananx/SpecWave / sendMenuEvent

Function sendMenuEvent

electron/main.js:504–515  ·  view source on GitHub ↗
(channel, payload)

Source from the content-addressed store, hash-verified

502}
503
504function sendMenuEvent(channel, payload) {
505 if (!mainWindow || mainWindow.isDestroyed()) return
506 try {
507 if (payload === undefined) {
508 mainWindow.webContents.send(channel)
509 return
510 }
511 mainWindow.webContents.send(channel, payload)
512 } catch (err) {
513 console.warn('[Menu] send failed:', err.message)
514 }
515}
516
517function buildApplicationMenuTemplate() {
518 const recentProjects = getRecentProjectsForMenu()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected