(entries, currentDir)
| 4030 | global.broadcastEvent('regenerate-thumbnails'); |
| 4031 | } else { |
| 4032 | mainWindow.webContents.send('regenerate-thumbnails'); |
| 4033 | } |
| 4034 | } |
| 4035 | }, |
| 4036 | { |
| 4037 | label: 'Generate Missing Thumbnails', |
| 4038 | click: () => { |
| 4039 | if (isServerMode && global.broadcastEvent) { |
| 4040 | global.broadcastEvent('generate-missing-thumbnails'); |
| 4041 | } else { |
| 4042 | mainWindow.webContents.send('generate-missing-thumbnails'); |
| 4043 | } |
| 4044 | } |
| 4045 | }, |
| 4046 | { |
| 4047 | label: 'Purge Models', |
| 4048 | click: () => mainWindow.webContents.send('open-purge-models') |
| 4049 | }, |
| 4050 | { type: 'separator' }, |
| 4051 | { |
| 4052 | label: 'Backup/Restore', |
| 4053 | click: () => mainWindow.webContents.send('open-backup-restore') |
| 4054 | } |
| 4055 | ] |
| 4056 | }, |
| 4057 | { |
| 4058 | label: 'Help', |
| 4059 | submenu: [ |
| 4060 | { |
| 4061 | label: 'Quick Start Guide', |
| 4062 | click: () => { |
| 4063 | mainWindow.webContents.send('open-guide'); |
| 4064 | } |
| 4065 | }, |
| 4066 | { |
| 4067 | label: 'Keyboard Shortcuts', |
| 4068 | click: () => { |
| 4069 | mainWindow.webContents.send('open-keyboard-shortcuts'); |
| 4070 | } |
| 4071 | }, |
| 4072 | { |
| 4073 | label: 'FAQ', |
| 4074 | click: async () => { |
| 4075 | await shell.openExternal('https://printventory.com/faq.html'); |
| 4076 | } |
| 4077 | }, |
| 4078 | { |
| 4079 | label: 'About', |
| 4080 | click: async () => { |
| 4081 | // Send event to renderer to open the about dialog |
| 4082 | mainWindow.webContents.send('open-about'); |
| 4083 | |
| 4084 | // Log for debugging |
| 4085 | console.log('About menu item clicked'); |
no test coverage detected