提交 b05c75cd 编写于 作者: S SteVen Batten

aggressively stop notification of menu chg

上级 d96141bb
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册