Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drawio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
James Cumby
drawio
Commits
2dfdb2e7
Commit
2dfdb2e7
authored
7 years ago
by
David Benson
Browse files
Options
Downloads
Patches
Plain Diff
menu fixes
Former-commit-id:
720f9687
parent
55bafbba
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
war/electron.js
+26
-0
26 additions, 0 deletions
war/electron.js
with
26 additions
and
0 deletions
war/electron.js
+
26
−
0
View file @
2dfdb2e7
...
...
@@ -2,6 +2,7 @@ const fs = require('fs')
const
path
=
require
(
'
path
'
)
const
url
=
require
(
'
url
'
)
const
electron
=
require
(
'
electron
'
)
const
{
Menu
:
menu
,
shell
}
=
require
(
'
electron
'
)
const
ipcMain
=
electron
.
ipcMain
const
dialog
=
electron
.
dialog
const
app
=
electron
.
app
...
...
@@ -144,6 +145,28 @@ app.on('ready', e =>
createWindow
()
autoUpdater
.
checkForUpdates
()
let
template
=
[{
label
:
app
.
getName
(),
submenu
:
[
{
label
:
'
Website
'
,
click
()
{
shell
.
openExternal
(
'
https://about.draw.io
'
);
}
},
{
label
:
'
Support
'
,
click
()
{
shell
.
openExternal
(
'
https://about.draw.io/support
'
);
}
},
{
type
:
'
separator
'
},
{
label
:
'
Quit
'
,
accelerator
:
'
CmdOrCtrl+Q
'
,
click
()
{
app
.
quit
();
}
}]
}];
if
(
process
.
platform
===
'
darwin
'
)
{
template
=
[{
...
...
@@ -183,6 +206,9 @@ app.on('ready', e =>
}]
}];
}
const
menuBar
=
menu
.
buildFromTemplate
(
template
);
menu
.
setApplicationMenu
(
menuBar
);
})
// Quit when all windows are closed.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment