projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a64360
)
Add File > Exit menu on Windows
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 21 Jun 2016 00:08:45 +0000
(17:08 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Tue, 21 Jun 2016 16:08:13 +0000
(09:08 -0700)
default_app/main.js
patch
|
blob
|
history
diff --git
a/default_app/main.js
b/default_app/main.js
index
0fdf30b
..
4c3c658
100644
(file)
--- a/
default_app/main.js
+++ b/
default_app/main.js
@@
-243,6
+243,18
@@
app.once('ready', () => {
]
}
+ if (process.platform === 'win32') {
+ template.unshift({
+ label: 'File',
+ submenu: [
+ {
+ label: 'Exit',
+ role: 'quit'
+ }
+ ]
+ })
+ }
+
const menu = Menu.buildFromTemplate(template)
Menu.setApplicationMenu(menu)
})