Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Aug 2, 2018
1 parent da1e577 commit 02822bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/code/electron-main/menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ export class Menubar {
case 'File':
case 'Window':
case 'Help':
return isMacintosh && (this.windowsMainService.getWindowCount() === 0 || !!this.menubarMenus[menuId]);
if (isMacintosh) {
return this.windowsMainService.getWindowCount() === 0 || !!this.menubarMenus[menuId];
}
default:
return this.windowsMainService.getWindowCount() > 0 && !!this.menubarMenus[menuId];
}
Expand Down

0 comments on commit 02822bf

Please sign in to comment.