From b05c75cdb8e6d11c29eb4a5f922a7b1f750df1ad Mon Sep 17 00:00:00 2001 From: SteVen Batten Date: Thu, 21 Feb 2019 18:03:47 +0100 Subject: [PATCH] aggressively stop notification of menu chg --- src/vs/workbench/browser/parts/titlebar/menubarControl.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/browser/parts/titlebar/menubarControl.ts b/src/vs/workbench/browser/parts/titlebar/menubarControl.ts index aef5ab7072743..e610b14bfa992 100644 --- a/src/vs/workbench/browser/parts/titlebar/menubarControl.ts +++ b/src/vs/workbench/browser/parts/titlebar/menubarControl.ts @@ -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; } @@ -238,8 +243,6 @@ export class MenubarControl extends Disposable { } } ]); - - this.storageService.store('menubar/linuxTitlebarRevertNotified', true, StorageScope.GLOBAL); } private notifyUserOfCustomMenubarAccessibility(): void {