1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-23 02:22:02 +03:00

prevent Cmd-R from reloading in production - fixes #4772

This commit is contained in:
Eugene Pankov 2021-10-28 09:26:55 +02:00
parent 7be3904123
commit b5cf66c232
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -257,7 +257,6 @@ export class Application {
{ {
label: 'View', label: 'View',
submenu: [ submenu: [
{ role: 'reload' },
{ role: 'toggleDevTools' }, { role: 'toggleDevTools' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'togglefullscreen' }, { role: 'togglefullscreen' },
@ -285,6 +284,10 @@ export class Application {
}, },
] ]
if (process.env.TABBY_DEV) {
template[2].submenu.unshift({ role: 'reload' })
}
Menu.setApplicationMenu(Menu.buildFromTemplate(template)) Menu.setApplicationMenu(Menu.buildFromTemplate(template))
} }
} }