Skip to content

Commit 9d5d4da

Browse files
committed
implement connect menu item
1 parent 96fa00c commit 9d5d4da

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/electron/menu.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ function getTemplate(_window) {
4040
}
4141
]
4242
},
43+
{
44+
label: 'Connect',
45+
submenu: [
46+
{
47+
label: 'Connect to...',
48+
accelerator: 'Command+N',
49+
click: function() {
50+
app.emit('show connect dialog');
51+
}
52+
}
53+
]
54+
},
4355
{
4456
label: 'Edit',
4557
submenu: [
@@ -81,13 +93,6 @@ function getTemplate(_window) {
8193
{
8294
label: 'View',
8395
submenu: [
84-
{
85-
label: 'Connect to...',
86-
accelerator: 'Command+N',
87-
click: function() {
88-
app.emit('show connect dialog');
89-
}
90-
},
9196
{
9297
label: 'Reload',
9398
accelerator: 'Command+R',

0 commit comments

Comments
 (0)