Use menu bar features in default_app
This commit is contained in:
parent
ae76657e17
commit
57acdc1bf6
1 changed files with 3 additions and 2 deletions
|
@ -16,6 +16,7 @@ app.on('ready', function() {
|
|||
width: 800,
|
||||
height: 600,
|
||||
resizable: false,
|
||||
'auto-hide-menu-bar': true,
|
||||
'use-content-size': true,
|
||||
});
|
||||
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
||||
|
@ -150,7 +151,7 @@ app.on('ready', function() {
|
|||
} else {
|
||||
var template = [
|
||||
{
|
||||
label: 'File',
|
||||
label: '&File',
|
||||
submenu: [
|
||||
{
|
||||
label: '&Open',
|
||||
|
@ -164,7 +165,7 @@ app.on('ready', function() {
|
|||
]
|
||||
},
|
||||
{
|
||||
label: 'View',
|
||||
label: '&View',
|
||||
submenu: [
|
||||
{
|
||||
label: '&Reload',
|
||||
|
|
Loading…
Reference in a new issue