Skip to content

Commit

Permalink
fixes #56185
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Aug 16, 2018
1 parent 11837c7 commit 493869e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/vs/workbench/electron-browser/workbench.ts
Expand Up @@ -1441,10 +1441,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 493869e

Please sign in to comment.