Add 'Quit' to spec window's menu.
This commit is contained in:
parent
6a712d4db4
commit
9a2fc8f4ea
1 changed files with 11 additions and 1 deletions
12
spec/main.js
12
spec/main.js
|
@ -42,7 +42,17 @@ app.on('window-all-closed', function() {
|
||||||
app.on('finish-launching', function() {
|
app.on('finish-launching', function() {
|
||||||
var template = [
|
var template = [
|
||||||
{
|
{
|
||||||
label: 'File',
|
label: 'Atom',
|
||||||
|
submenu: [
|
||||||
|
{
|
||||||
|
label: 'Quit',
|
||||||
|
accelerator: 'Command+Q',
|
||||||
|
click: function(item, window) { app.quit(); }
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Window',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: 'Open',
|
label: 'Open',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue