Skip to content

Commit

Permalink
fixes #56185
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Aug 13, 2018
1 parent 5e5f6fc commit 01a50ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vs/workbench/electron-browser/workbench.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1435,10 +1435,12 @@ export class Workbench extends Disposable implements IPartService {
}

setMenubarVisibility(visibility: MenuBarVisibility, skipLayout: boolean): void {
this.menubarVisibility = visibility;
if (this.menubarVisibility !== visibility) {
this.menubarVisibility = visibility;

if (!skipLayout) {
this.workbenchLayout.layout();
if (!skipLayout) {
this.workbenchLayout.layout();
}
}
}

Expand Down

0 comments on commit 01a50ac

Please sign in to comment.