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,
|
width: 800,
|
||||||
height: 600,
|
height: 600,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
|
'auto-hide-menu-bar': true,
|
||||||
'use-content-size': true,
|
'use-content-size': true,
|
||||||
});
|
});
|
||||||
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
mainWindow.loadUrl('file://' + __dirname + '/index.html');
|
||||||
|
@ -150,7 +151,7 @@ app.on('ready', function() {
|
||||||
} else {
|
} else {
|
||||||
var template = [
|
var template = [
|
||||||
{
|
{
|
||||||
label: 'File',
|
label: '&File',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: '&Open',
|
label: '&Open',
|
||||||
|
@ -164,7 +165,7 @@ app.on('ready', function() {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'View',
|
label: '&View',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
{
|
||||||
label: '&Reload',
|
label: '&Reload',
|
||||||
|
|
Loading…
Reference in a new issue