(channel, payload)
| 502 | } |
| 503 | |
| 504 | function 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 | |
| 517 | function buildApplicationMenuTemplate() { |
| 518 | const recentProjects = getRecentProjectsForMenu() |
no outgoing calls
no test coverage detected