Skip to content

Commit

Permalink
fix issue with double menubar with unity
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Nov 22, 2018
1 parent ebf5f76 commit 0d3a144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/platform/menubar/electron-main/menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export class Menubar {
this.menubarMenus = Object.create(null);
this.keybindings = Object.create(null);

this.restoreCachedMenubarData();
if (isMacintosh || this.configurationService.getValue('window.titleBarStyle') === 'native') {
this.restoreCachedMenubarData();
}

this.addFallbackHandlers();

Expand Down

0 comments on commit 0d3a144

Please sign in to comment.