Skip to content

Commit 75784fd

Browse files
author
Waley Chen
committed
Merge pull request #233 from 10gen/INT-820-revise-windows-menu
INT-820 reinsert lost changes: puts exits under connect for windows menu
2 parents b29423d + 6069af8 commit 75784fd

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/electron/menu.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,6 @@ function helpSubMenu(showCompassOverview) {
165165
};
166166
}
167167

168-
function nonDarwinCompassSubMenuItem() {
169-
return {
170-
label: 'MongoDB Compass',
171-
submenu: [
172-
quitSubMenuItem('Exit')
173-
]
174-
};
175-
}
176-
177168
function shareSubMenu() {
178169
return {
179170
label: 'Share',
@@ -256,12 +247,10 @@ function darwinMenu(menuState) {
256247

257248
function nonDarwinMenu(menuState) {
258249
var menu = [
259-
nonDarwinCompassSubMenuItem()
250+
connectSubMenu(true),
251+
viewSubMenu()
260252
];
261253

262-
menu.push(connectSubMenu());
263-
menu.push(viewSubMenu());
264-
265254
if (menuState.showShare) {
266255
menu.push(shareSubMenu());
267256
}

0 commit comments

Comments
 (0)