mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-23 10:32:29 +03:00
prevent Cmd-R from reloading in production - fixes #4772
This commit is contained in:
parent
7be3904123
commit
b5cf66c232
@ -257,7 +257,6 @@ export class Application {
|
||||
{
|
||||
label: 'View',
|
||||
submenu: [
|
||||
{ role: 'reload' },
|
||||
{ role: 'toggleDevTools' },
|
||||
{ type: 'separator' },
|
||||
{ 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))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user