Skip to content

Commit

Permalink
aggressively stop notification of menu chg
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Feb 21, 2019
1 parent d96141b commit b05c75c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/vs/workbench/browser/parts/titlebar/menubarControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ export class MenubarControl extends Disposable {
const hasBeenNotified = this.storageService.getBoolean('menubar/linuxTitlebarRevertNotified', StorageScope.GLOBAL, false);
const titleBarConfiguration = this.configurationService.inspect('window.titleBarStyle');
const customShown = getTitleBarStyle(this.configurationService, this.environmentService) === 'custom';

if (!hasBeenNotified) {
this.storageService.store('menubar/linuxTitlebarRevertNotified', true, StorageScope.GLOBAL);
}

if (isNewUser || hasBeenNotified || (titleBarConfiguration && titleBarConfiguration.user) || customShown) {
return;
}
Expand All @@ -238,8 +243,6 @@ export class MenubarControl extends Disposable {
}
}
]);

this.storageService.store('menubar/linuxTitlebarRevertNotified', true, StorageScope.GLOBAL);
}

private notifyUserOfCustomMenubarAccessibility(): void {
Expand Down

0 comments on commit b05c75c

Please sign in to comment.