MCPcopy Index your code
hub / github.com/Soundnode/soundnode-app / menuBar

Function menuBar

main.js:199–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197}
198
199function menuBar() {
200 const template = [
201 {
202 role: 'view',
203 submenu: [
204 {
205 role: 'togglefullscreen'
206 },
207 {
208 role: 'close'
209 },
210 {
211 type: 'separator'
212 },
213 {
214 label: 'Learn More',
215 click() {
216 require('electron').shell.openExternal('https://github.com/Soundnode/soundnode-app/wiki/Help')
217 }
218 },
219 {
220 label: 'License',
221 click() {
222 require('electron').shell.openExternal('https://github.com/Soundnode/soundnode-app/blob/master/LICENSE.md')
223 }
224 }
225 ]
226 },
227 {
228 role: 'window',
229 submenu: [
230 {
231 label: 'Reload',
232 accelerator: 'CmdOrCtrl+R',
233 click(item, focusedWindow) {
234 if (focusedWindow) {
235 focusedWindow.reload()
236 }
237 }
238 },
239 {
240 label: 'Toggle Developer Tools',
241 accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
242 click(item, focusedWindow) {
243 if (focusedWindow) {
244 focusedWindow.webContents.toggleDevTools()
245 }
246 }
247 },
248 {
249 type: 'separator'
250 },
251 {
252 role: 'resetzoom'
253 },
254 {
255 role: 'zoomin'
256 },

Callers 1

initMainWindowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected