Use quit role which is now part of electron

https://github.com/electron/electron/pull/6154
This commit is contained in:
Kolja Lampe
2016-07-04 09:02:28 +02:00
parent 1bce876fae
commit 32a5cd8fe2
2 changed files with 3 additions and 14 deletions

View File

@@ -25,10 +25,7 @@ function createTemplate(mainWindow, config) {
}), {
type: 'separator'
}, {
label: 'Quit',
click: function(item) {
app.quit();
}
role: 'quit'
}
];
return template;