Skip to content

Commit

Permalink
0.0.4
Browse files Browse the repository at this point in the history
Add quit menu.
  • Loading branch information
jimpick committed Feb 16, 2018
1 parent 55132da commit 9701083
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pixelpusher",
"productName": "pixelpusher",
"version": "0.0.1",
"version": "0.0.4",
"description": "Draw and animate Pixel Art, then export the results to CSS, share or download them, powered by Hypermerge",
"main": "src/electron.js",
"scripts": {
Expand Down
17 changes: 17 additions & 0 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,23 @@ const createWindow = async () => {
}
]

if (process.platform === 'darwin') {
template.unshift({
label: app.getName(),
submenu: [
{role: 'about'},
{type: 'separator'},
{role: 'services', submenu: []},
{type: 'separator'},
{role: 'hide'},
{role: 'hideothers'},
{role: 'unhide'},
{type: 'separator'},
{role: 'quit'}
]
})
}

Menu.setApplicationMenu(Menu.buildFromTemplate(template))
}

Expand Down

0 comments on commit 9701083

Please sign in to comment.